|
wavelength 1.0.0
|
A chunk flying off the track, an instance of the mesh of a model. More...
#include <tnlfire.h>
Public Member Functions | |
| Chunk () | |
| Make an idle chunk. | |
| void | Spawn (ChunkModel *pModel, int bAuto, int nTrack, const Transform *pCellXfm, const Transform *pBlendXfm, std::list< Transform > *pFreeXfms, float flTick) |
| Launch the chunk from a cell of a track with a random velocity and life. | |
| void | Reset (std::list< Transform > *pFreeXfms) |
| Give the instance back to the pool of transforms and make the chunk idle. | |
| bool | Update (float flTicks) |
| Move the chunk under the world force and place its instance with its animation. | |
A chunk flying off the track, an instance of the mesh of a model.
The class is not polymorphic. RTTI identifies it. The object is 0x70 bytes. An idle chunk waits in the pool of the fire, and its instance transform waits in the pool of transforms.
| TnlFire::Chunk::Chunk | ( | ) |
Make an idle chunk.
The binary expands it inline.
| void TnlFire::Chunk::Spawn | ( | ChunkModel * | pModel, |
| int | bAuto, | ||
| int | nTrack, | ||
| const Transform * | pCellXfm, | ||
| const Transform * | pBlendXfm, | ||
| std::list< Transform > * | pFreeXfms, | ||
| float | flTick ) |
Launch the chunk from a cell of a track with a random velocity and life.
| pModel | The model. |
| bAuto | Whether the capture is automatic. It picks the range of the velocity. |
| nTrack | The track. It picks the scale of the chunk. |
| pCellXfm | The transform of the cell. |
| pBlendXfm | The transform of the middle of the tunnel. The chunk does not read it. |
| pFreeXfms | The pool of transforms the instance of the chunk comes from. |
| flTick | The tick of the launch. |
| void TnlFire::Chunk::Reset | ( | std::list< Transform > * | pFreeXfms | ) |
Give the instance back to the pool of transforms and make the chunk idle.
| pFreeXfms | The pool of transforms. |
| bool TnlFire::Chunk::Update | ( | float | flTicks | ) |
Move the chunk under the world force and place its instance with its animation.
| flTicks | The ticks since the last update. |