SHARE
TWEET

Untitled

a guest Apr 24th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from direct.showbase.ShowBase import ShowBase
  2. from direct.actor.Actor import Actor
  3.  
  4.  
  5. s = ShowBase()
  6. s.cam.set_pos(0, -5, 5)
  7. s.cam.look_at(0, 0, 0)
  8.  
  9. a = Actor('assets/cars/Ricardeaut_Magnesium_Rig.bam')
  10. a.reparent_to(s.render)
  11.  
  12. b = s.loader.loadModel('assets/cars/Ricardeaut_Magnesium.bam')
  13. b.reparentTo(a)
  14.  
  15. a.exposeJoint(
  16.     b.find('**/fz_repulsor:1'),
  17.     "modelRoot",
  18.     "repulsor_bone:1",
  19. )
  20.  
  21. a.loop('gems')
  22.  
  23. s.run()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top