wavelength 1.0.0
Loading...
Searching...
No Matches
TnlPath::Segment Class Reference

One transform animation of the path, 0x18 bytes. More...

#include <tnlpath.h>

Collaboration diagram for TnlPath::Segment:

Public Member Functions

 Segment ()
 Construct a clear segment.
void Reset ()
 Clear the segment.
void Xfm (float flTick, float flTime, Transform *pXfm) const
 Work out the transform of the segment.

Public Attributes

RndTransAnim * mAnim
int mLoop
int mUseTime
float mOffset
float mLoopStart
float mLoopEnd

Detailed Description

One transform animation of the path, 0x18 bytes.

Constructor & Destructor Documentation

◆ Segment()

TnlPath::Segment::Segment ( )
inline

Construct a clear segment.

The TnlPath constructor inlines it.

Member Function Documentation

◆ Reset()

void TnlPath::Segment::Reset ( )

Clear the segment.

Ghidra address:
NTSC-U/C: 0x001cc1b8
Ghidra address:
PAL: 0x001d4f58

◆ Xfm()

void TnlPath::Segment::Xfm ( float flTick,
float flTime,
Transform * pXfm ) const

Work out the transform of the segment.

A looping segment wraps a frame past mLoopStart into its loop. A filtered frame before the first translation key extends the path from that key along its tangent.

Parameters
flTickThe tick of the song.
flTimeThe time of the song in milliseconds.
pXfmReceives the transform.
Ghidra address:
NTSC-U/C: 0x001cc1d8
Ghidra address:
PAL: 0x001d4f78

Member Data Documentation

◆ mAnim

RndTransAnim* TnlPath::Segment::mAnim

The animation, or null for no path.

◆ mLoop

int TnlPath::Segment::mLoop

Whether the animation loops between mLoopStart and mLoopEnd.

◆ mUseTime

int TnlPath::Segment::mUseTime

Whether the frame follows the time rather than the tick.

◆ mOffset

float TnlPath::Segment::mOffset

The frame of the animation at tick or time 0.

◆ mLoopStart

float TnlPath::Segment::mLoopStart

The first frame of the loop.

◆ mLoopEnd

float TnlPath::Segment::mLoopEnd

The frame the loop wraps at.


The documentation for this class was generated from the following file: