#include <spPhysicsDynamicObject.hpp>
List of all members.
Constructor & Destructor Documentation
virtual sp::physics::DynamicPhysicsObject::~DynamicPhysicsObject |
( |
|
) |
[virtual] |
sp::physics::DynamicPhysicsObject::DynamicPhysicsObject |
( |
|
) |
[protected] |
Member Function Documentation
virtual void sp::physics::DynamicPhysicsObject::addImpulse |
( |
const dim::vector3df & |
Direction, |
|
|
const dim::vector3df & |
PivotPoint | |
|
) |
| | [pure virtual] |
Adds the specified impulse to the body. E.g. use this when you shoot at a box and the box shall throw away.
- Parameters:
-
| Direction,: | Specifies the direction in which the impulse is to be pointed. |
| PivotPoint,: | Specifies the global point where the impulse is to be performed. |
virtual void sp::physics::DynamicPhysicsObject::addVelocity |
( |
const dim::vector3df & |
Direction |
) |
[pure virtual] |
bool sp::physics::DynamicPhysicsObject::getAutoSleep |
( |
|
) |
const [inline] |
Returns true if the auto sleep and freeze mode is enabled.
dim::vector3df sp::physics::DynamicPhysicsObject::getGravity |
( |
|
) |
const [inline] |
Returns the individual gravity for this rigid body.
Returns the gravity callback.
f32 sp::physics::DynamicPhysicsObject::getMass |
( |
|
) |
const [inline] |
Returns the body's mass factor.
virtual dim::vector3df sp::physics::DynamicPhysicsObject::getMassCenter |
( |
|
) |
const [pure virtual] |
Returns the balance point (or rather center of mass).
virtual dim::vector3df sp::physics::DynamicPhysicsObject::getVelocity |
( |
|
) |
const [pure virtual] |
virtual void sp::physics::DynamicPhysicsObject::setAutoSleep |
( |
bool |
Enable |
) |
[virtual] |
Enables or disables the auto sleep and freeze mode. By default disabled. This can be used for optimization purposes.
virtual void sp::physics::DynamicPhysicsObject::setForce |
( |
const dim::vector3df & |
Direction |
) |
[pure virtual] |
Sets the force for this object. This is actually only used to apply the g-force.
- Note:
- This function can only be used internally. Otherwise it has no effect.
virtual void sp::physics::DynamicPhysicsObject::setGravity |
( |
const dim::vector3df & |
Gravity |
) |
[virtual] |
Sets the individual gravity for this rigid body.
virtual void sp::physics::DynamicPhysicsObject::setGravityCallback |
( |
const PhysicsGravityCallback & |
Callback |
) |
[virtual] |
Sets the gravity callback. By default 0.
virtual void sp::physics::DynamicPhysicsObject::setMass |
( |
f32 |
Mass |
) |
[virtual] |
Sets the body's mass factor (by default 25.0).
virtual void sp::physics::DynamicPhysicsObject::setMassCenter |
( |
const dim::vector3df & |
LocalPoint |
) |
[pure virtual] |
Sets the balance point (or rather center of mass) of the rigid body in object space. By default (0 | 0 | 0).
virtual void sp::physics::DynamicPhysicsObject::setVelocity |
( |
const dim::vector3df & |
Direction |
) |
[pure virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: