Assimp  v4.1. (December 2018)
Assimp::TargetAnimationHelper Class Reference

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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TargetAnimationHelper()

Assimp::TargetAnimationHelper::TargetAnimationHelper ( )
inline

Member Function Documentation

◆ Process()

void TargetAnimationHelper::Process ( std::vector< aiVectorKey > *  distanceTrack)

Computes final animation channels.

Parameters
distanceTrackReceive camera translation keys ... != NULL.

◆ SetFixedMainAnimationChannel()

void TargetAnimationHelper::SetFixedMainAnimationChannel ( const aiVector3D fixed)

Sets the main animation channel to a fixed value.

Parameters
fixedFixed value for the main animation channel

◆ SetMainAnimationChannel()

void TargetAnimationHelper::SetMainAnimationChannel ( const std::vector< aiVectorKey > *  objectPositions)

Sets the main animation channel.

Parameters
objectPositionsTranslation channel

◆ SetTargetAnimationChannel()

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.

Parameters
targetPositionsTranslation channel

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