Advertisement
otorp2

3d kiematic rigid

Feb 4th, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. use translate or set_translate is easier
  2.  
  3. object.translate(Vector3(0, 1, 0)) moves the object +1 unit (adds 1 to y)
  4.  
  5. object.set_translation(Vector3(4,5,6)) moves the object to t 4x, 5y, 6z
  6.  
  7. for a rigid body you can also use .apply_impulse(1, Vector(0,1,0)) give it a jolt. I can't remember if that's how you use it. Look it up. Only for rigidbody tho
  8.  
  9. i recommend using kinematic body and .move function cause is way easier and it produces linear motion. the asteroids themselves can be rigidbody.
  10.  
  11. and is body not dob
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement