Module GameTypes :: Class KX_PhysicsObjectWrapper
[frames] | no frames]

Class KX_PhysicsObjectWrapper

PyObjectPlus --+
               |
              KX_PhysicsObjectWrapper

KX_PhysicsObjectWrapper

Instance Methods
 
setActive(active)
Set the object to be active.
 
setAngularVelocity(x, y, z, local)
Set the angular velocity of the object.
 
setLinearVelocity(x, y, z, local)
Set the linear velocity of the object.
 
setPosition(x, y, z)
Set the position of the object
bool
isA(game_type)
Check if this is a type or a subtype game_type. (Inherited from GameTypes.PyObjectPlus)
Instance Variables
bool invalid
Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus)
Method Details

setActive(active)

 

Set the object to be active.

Parameters:
  • active (bool) - set to True to be active

setAngularVelocity(x, y, z, local)

 

Set the angular velocity of the object.

Parameters:
  • x (float) - angular velocity for the x-axis
  • y (float) - angular velocity for the y-axis
  • z (float) - angular velocity for the z-axis
  • local (bool) - set to True for local axis

setLinearVelocity(x, y, z, local)

 

Set the linear velocity of the object.

Parameters:
  • x (float) - linear velocity for the x-axis
  • y (float) - linear velocity for the y-axis
  • z (float) - linear velocity for the z-axis
  • local (bool) - set to True for local axis

setPosition(x, y, z)

 

Set the position of the object

Parameters:
  • x (float) - x coordinate
  • y (float) - y coordinate
  • z (float) - z coordinate