The path the tunnel follows through the world, a transform animation that blends into the next.
More...
#include <tnlpath.h>
|
| class | Segment |
| | One transform animation of the path, 0x18 bytes. More...
|
|
| | TnlPath () |
| | Construct a path with no animation.
|
| void | Set (RndTransAnim *pAnim, int bLoop, int bUseTime, float flStart, float flFrame, float flLoopStart, float flLoopEnd) |
| | Replace the animation at once.
|
| void | BlendTo (RndTransAnim *pAnim, int bLoop, int bUseTime, float flLength, float flStart, float flFrame, float flLoopStart, float flLoopEnd) |
| | Blend from the animation in use to a new one.
|
| void | Xfm (float flTick, float flTime, Transform *pXfm) |
| | Work out the transform of the path.
|
| const Segment & | GetSegment (int nSegment) const |
| | The segment that is blended out, then the segment in use.
|
The path the tunnel follows through the world, a transform animation that blends into the next.
The class is not polymorphic, and the name is inferred. The object is 0x4c bytes. TnlGeom places every cross section of the tunnel along the path.
◆ TnlPath()
Construct a path with no animation.
- Ghidra address:
- NTSC-U/C: 0x001cbee0
- Ghidra address:
- PAL: 0x001d4c80
◆ Set()
| void TnlPath::Set |
( |
RndTransAnim * | pAnim, |
|
|
int | bLoop, |
|
|
int | bUseTime, |
|
|
float | flStart, |
|
|
float | flFrame, |
|
|
float | flLoopStart, |
|
|
float | flLoopEnd ) |
Replace the animation at once.
- Parameters
-
| pAnim | The animation, or null for no path. |
| bLoop | Whether the animation loops. |
| bUseTime | Whether the frame follows the time rather than the tick. |
| flStart | The tick or time the animation starts at. |
| flFrame | The frame of the animation at flStart. |
| flLoopStart | The first frame of the loop. |
| flLoopEnd | The frame the loop wraps at. |
- Ghidra address:
- NTSC-U/C: 0x001cbf60
- Ghidra address:
- PAL: 0x001d4d00
◆ BlendTo()
| void TnlPath::BlendTo |
( |
RndTransAnim * | pAnim, |
|
|
int | bLoop, |
|
|
int | bUseTime, |
|
|
float | flLength, |
|
|
float | flStart, |
|
|
float | flFrame, |
|
|
float | flLoopStart, |
|
|
float | flLoopEnd ) |
Blend from the animation in use to a new one.
- Parameters
-
| pAnim | The new animation. |
| bLoop | Whether the new animation loops. |
| bUseTime | Whether the frame of the new animation follows the time. |
| flLength | The length of the blend in ticks. |
| flStart | The tick the blend starts at. |
| flFrame | The frame of the new animation at flStart. |
| flLoopStart | The first frame of the loop of the new animation. |
| flLoopEnd | The frame the loop of the new animation wraps at. |
- Ghidra address:
- NTSC-U/C: 0x001cc010
- Ghidra address:
- PAL: 0x001d4db0
◆ Xfm()
| void TnlPath::Xfm |
( |
float | flTick, |
|
|
float | flTime, |
|
|
Transform * | pXfm ) |
Work out the transform of the path.
- Parameters
-
| flTick | The tick of the song. |
| flTime | The time of the song in milliseconds. |
| pXfm | Receives the transform. |
- Ghidra address:
- NTSC-U/C: 0x001cc098
- Ghidra address:
- PAL: 0x001d4e38
◆ GetSegment()
| const Segment & TnlPath::GetSegment |
( |
int | nSegment | ) |
const |
|
inline |
The segment that is blended out, then the segment in use.
Report one of the two segments.
- Parameters
-
| nSegment | The segment, 0 or 1. |
- Returns
- The segment.
The documentation for this class was generated from the following file: