|
applyMovementapplyMovement(movement, local):Note:Doesn't work with Object
type: Soft body
Move the game object a set distance (works like Motion Actuator Loc). Movement: 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 movemovement = [ 0.0, 0.0, 1.0]# use world axislocal = False# move game objectobj.applyMovement( movement, local) |