A rigid body whose motion is controlled by rigid body dynamics as implemented by the physics engine. More...

Public Member Functions | |
| ApplyImpulse (number ix, number iy, number iz) | |
| Applies an impulse at the center of this body. More... | |
| SetGravity (number gx, number gy, number gz) | |
| Sets the gravity vector for this body. More... | |
Public Member Functions inherited from BaseEntityT | |
| string | GetName () |
| Returns the name of this entity. More... | |
| x y z | GetOrigin () |
| Returns the origin of this entity as a triple of numbers. More... | |
| SetOrigin (number x, number y, number z) | |
| Sets a new position for this entity. More... | |
A rigid body whose motion is controlled by rigid body dynamics as implemented by the physics engine.
Rigid Body | ApplyImpulse | ( | number | ix, |
| number | iy, | ||
| number | iz | ||
| ) |
Applies an impulse at the center of this body.
| SetGravity | ( | number | gx, |
| number | gy, | ||
| number | gz | ||
| ) |
Sets the gravity vector for this body.
The default gravity vector is (0, 0, -9.81).