Assimp
v3.1.1 (June 2014)
|
Helper class for the 3DS and ASE loaders to compute camera and spot light animations. More...
Public Member Functions | |
void | Process (std::vector< aiVectorKey > *distanceTrack) |
Computes final animation channels. More... | |
void | SetFixedMainAnimationChannel (const aiVector3D &fixed) |
Sets the main animation channel to a fixed value. More... | |
void | SetMainAnimationChannel (const std::vector< aiVectorKey > *objectPositions) |
Sets the main animation channel. More... | |
void | SetTargetAnimationChannel (const std::vector< aiVectorKey > *targetPositions) |
Sets the target animation channel. More... | |
TargetAnimationHelper () | |
Helper class for the 3DS and ASE loaders to compute camera and spot light animations.
3DS and ASE store the differently to Assimp - there is an animation channel for the camera/spot light itself and a separate position animation channels specifying the position of the camera/spot light look-at target
|
inline |
void TargetAnimationHelper::Process | ( | std::vector< aiVectorKey > * | distanceTrack | ) |
Computes final animation channels.
distanceTrack | Receive camera translation keys ... != NULL. |
void TargetAnimationHelper::SetFixedMainAnimationChannel | ( | const aiVector3D & | fixed | ) |
Sets the main animation channel to a fixed value.
fixed | Fixed value for the main animation channel |
void TargetAnimationHelper::SetMainAnimationChannel | ( | const std::vector< aiVectorKey > * | objectPositions | ) |
Sets the main animation channel.
objectPositions | Translation channel |
void TargetAnimationHelper::SetTargetAnimationChannel | ( | const std::vector< aiVectorKey > * | targetPositions | ) |
Sets the target animation channel.
This channel specifies the position of the camera/spot light target at a specific position.
targetPositions | Translation channel |