2009-04-28 13:02:49 +00:00
|
|
|
from PyObjectPlus import *
|
|
|
|
|
|
|
|
|
|
class KX_PhysicsObjectWrapper(PyObjectPlus):
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
|
|
|
|
KX_PhysicsObjectWrapper
|
|
|
|
|
|
|
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
def setActive(active):
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
Set the object to be active.
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param active: set to True to be active
|
|
|
|
|
@type active: bool
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
|
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
def setAngularVelocity(x, y, z, local):
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
Set the angular velocity of the object.
|
|
|
|
|
|
|
|
|
|
@param x: angular velocity for the x-axis
|
|
|
|
|
@type x: float
|
|
|
|
|
|
|
|
|
|
@param y: angular velocity for the y-axis
|
|
|
|
|
@type y: float
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param z: angular velocity for the z-axis
|
|
|
|
|
@type z: float
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param local: set to True for local axis
|
|
|
|
|
@type local: bool
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
def setLinearVelocity(x, y, z, local):
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
Set the linear velocity of the object.
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param x: linear velocity for the x-axis
|
|
|
|
|
@type x: float
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param y: linear velocity for the y-axis
|
|
|
|
|
@type y: float
|
|
|
|
|
|
|
|
|
|
@param z: linear velocity for the z-axis
|
|
|
|
|
@type z: float
|
|
|
|
|
|
|
|
|
|
@param local: set to True for local axis
|
|
|
|
|
@type local: bool
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
def setPosition(x, y, z):
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|
2009-05-11 21:35:38 +00:00
|
|
|
Set the position of the object
|
|
|
|
|
|
|
|
|
|
@param x: x coordinate
|
|
|
|
|
@type x: float
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param y: y coordinate
|
|
|
|
|
@type y: float
|
2009-04-07 17:54:56 +00:00
|
|
|
|
2009-05-11 21:35:38 +00:00
|
|
|
@param z: z coordinate
|
|
|
|
|
@type z: float
|
2009-04-07 17:54:56 +00:00
|
|
|
"""
|