Advertisement
metalx1000

Blender 3D Game - Move and Rotate Object

Jan 24th, 2012
367
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. def main():
  4.     cont = bge.logic.getCurrentController()
  5.     owner = cont.owner
  6.    
  7.     owner.localPosition.x += 0.1
  8.     owner.applyRotation([0,0,.1])
  9.    
  10. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement