wavelength 1.0.0
Loading...
Searching...
No Matches
meshrotation.h File Reference
#include "rnd/rndmesh.h"
#include "rnd/rndmeshanim.h"
Include dependency graph for meshrotation.h:

Go to the source code of this file.

Functions

void AddRotationKeys (RndMesh *pMesh, RndMeshAnim *pAnim, int nKeys, float flStartFrame, float flStartAngle, float flEndFrame, float flEndAngle)
 Add the keys of a mesh animation that turn the vertices of a mesh about its Z axis.

Function Documentation

◆ AddRotationKeys()

void AddRotationKeys ( RndMesh * pMesh,
RndMeshAnim * pAnim,
int nKeys,
float flStartFrame,
float flStartAngle,
float flEndFrame,
float flEndAngle )

Add the keys of a mesh animation that turn the vertices of a mesh about its Z axis.

The keys are spread evenly over the frames and the angles. The name is inferred.

Parameters
pMeshThe mesh whose vertices turn.
pAnimThe animation that receives the keys.
nKeysThe number of keys.
flStartFrameThe frame of the first key.
flStartAngleThe angle of the first key, in radians.
flEndFrameThe frame of the last key.
flEndAngleThe angle of the last key, in radians.
Ghidra address:
NTSC-U/C: 0x001e2190
Ghidra address:
PAL: 0x001eaf30