Home | Trees | Indices | Help |
|
---|
|
All game objects are derived from this class.
Properties assigned to game objects are accessible as attributes of this class.Instance Methods | |||
|
|||
|
|||
|
|||
float |
|
||
list [vx, vy, vz] |
|
||
float |
|
||
KX_MeshProxy |
|
||
3x3 rotation matrix |
|
||
KX_GameObject |
|
||
|
|||
list [x, y, z] |
|
||
list [fx, fy, fz] |
|
||
list [vx, vy, vz] |
|
||
KX_GameObject |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Instance Variables | |
float |
mass The object's mass (provided the object has a physics controller). |
string. |
name The object's name. |
3x3 Matrix [[float]] |
orientation The object's orientation. |
KX_GameObject |
parent The object's parent object. |
list [x, y, z] |
position The object's position. |
list [sx, sy, sz] |
scaling The object's scaling factor. |
boolean |
visible visibility flag. |
Method Details |
Applies an impulse to the game object. This will apply the specified impulse to the game object at the specified point. If point != getPosition(), applyImpulse will also change the object's angular momentum. Otherwise, only linear momentum will change.
|
Enables rigid body physics for this object. Rigid body physics allows the object to roll on collisions. |
|
Gets the game object's linear velocity. This method returns the game object's velocity through it's centre of mass, ie no angular velocity component.
|
|
|
|
|
|
Gets the game object's reaction force. The reaction force is the force applied to this object over the last simulation timestep. This also includes impulses, eg from collisions.
|
Gets the game object's velocity at the specified point. Gets the game object's velocity at the specified point, including angular components.
|
Look towards another point/object and find first object hit within dist that matches prop. The ray is always casted from the center of the object, ignoring the object itself. The ray is casted towards the center of another object or an explicit [x,y,z] point.
|
|
|
|
|
Instance Variable Details |
massThe object's mass (provided the object has a physics controller). Read only.
|
orientationThe object's orientation. 3x3 Matrix. You can also write a Quaternion or Euler vector.
|
parentThe object's parent object. (Read only)
|
scalingThe object's scaling factor. list [sx, sy, sz]
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Tue May 20 07:56:37 2008 | http://epydoc.sourceforge.net |