|
applyRotationapplyRotation(rotation, local):Note:Doesn't work with Object
type: Soft body
Rotate the game object a set rotation (works like Motion Actuator Rot). rotation: Type: 3D
Vector
localType: Bool
1 = True
Apply force using
local (game object) axis
0 = False
Apply force using
world axis
Sample Code# get controllercontroller = GameLogic.getCurrentController()# get object that controller is attached toobj = controller.owner# set amount to rotaterotation = [ 0.0, 0.0, 0.1]# use world axislocal = False# move game objectobj.applyRotation( rotation, local) |