localInertia
localInertia
gets the object's inertia vector in local coordinates
Type: list [ix, iy, iz]
Sample Code
################# Get actuator
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# get local inertia
inertia = obj.localInertia
|