◆ Cleanup()
virtual void WHavokPhysics::Cleanup |
( |
| ) |
|
|
virtual |
◆ RayCast()
Performs a ray cast operation on the physics objects. A ray cast operation checks if a ray segment (given to the function) intersects any geometry, as far as the physics engine is concerned.
- Parameters
-
from | Starting point of the ray |
to | End point of the ray |
out | A pointer to a structure to be filled with extra output information |
- Returns
- true if the ray intersects some geometry, false otherwise
Implements WPhysicsComponent.
◆ SetGravity() [1/2]
void WHavokPhysics::SetGravity |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
virtual |
Sets the physics gravity.
- Parameters
-
x | Gravity on the x-axis |
y | Gravity on the y-axis |
z | Gravity on the z-axis |
Implements WPhysicsComponent.
◆ SetGravity() [2/2]
void WHavokPhysics::SetGravity |
( |
WVector3 |
gravity | ) |
|
|
virtual |
Sets the physics gravity.
- Parameters
-
gravity | Physics gravity vector |
Implements WPhysicsComponent.
◆ SetSpeed()
void WHavokPhysics::SetSpeed |
( |
float |
fSpeed | ) |
|
|
virtual |
Sets the simulation speed multiplier
- Parameters
-
fSpeed | Speed multiplier, must be > 0 (1 is normal speed) |
Implements WPhysicsComponent.
◆ Start()
virtual void WHavokPhysics::Start |
( |
| ) |
|
|
virtual |
◆ Step()
virtual void WHavokPhysics::Step |
( |
float |
deltaTime | ) |
|
|
virtual |
Step the physics simulation a certain time forward.
- Parameters
-
deltaTime | Time to step the simulation |
Implements WPhysicsComponent.
◆ Stepping()
virtual bool WHavokPhysics::Stepping |
( |
| ) |
const |
|
virtual |
This function must return true if called during Step(), and false otherwise
- Returns
- true if the physics simulation is stepping, false otherwise
Implements WPhysicsComponent.
◆ Stop()
virtual void WHavokPhysics::Stop |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: