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

Class KX_PhysicsObjectWrapper

source code

PyObjectPlus --+
               |
              KX_PhysicsObjectWrapper

KX_PhysicsObjectWrapper

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

setActive(active)

source code 
Set the object to be active.
Parameters:
  • active (bool) - set to True to be active

setAngularVelocity(x, y, z, local)

source code 
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)

source code 
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)

source code 
Set the position of the object
Parameters:
  • x (float) - x coordinate
  • y (float) - y coordinate
  • z (float) - z coordinate