|
applyImpulseapplyImpulse( point, impulse)Note:Object type: Dynamic and
Rigid body
Applies an impluse to the game object point you choose. point: Type: list
[ x, y, z]
impulseType: list
[ fx, fy, fz]
Sample Code# get controllercontroller = GameLogic.getCurrentController()# get object that controller is attached toobj = controller.owner# apply impluse to object centerpoint = [ 0.0, 0.0, 0.0]# impulse to be applied to Z axisimpulse = [ 0.0, 0.0, 50.0]# apply impulseobj.applyImpulse( point, impulse) |