Advertisement
metalx1000

Blender 3D Game - Move then Rotate Object

Feb 1st, 2012
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import bge
  2.  
  3. owner = bge.logic.getCurrentController().owner
  4.  
  5. z=owner.localPosition.z
  6.  
  7. if z < 5:
  8.     owner.localPosition.z+=.1
  9.     print(z)
  10. else:
  11.     owner.applyRotation([0,0,.1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement