Blender 3D Game - Move and Rotate Object

How to write a Python Program to Blender 3D Game - Move and Rotate Object ?


Solution:

import bge

def main():
    cont = bge.logic.getCurrentController()
    owner = cont.owner
   
    owner.localPosition.x += 0.1
    owner.applyRotation([0,0,.1])
   

main()


Learn More :