#include <Frame.h>
Public Member Functions | |
Frame (size_t frameIndex, Motion *sourceMotion, float sampleTime, bool mirrored) | |
void | SamplePose (Pose *outputPose, float timeOffset=0.0f) const |
Motion * | GetSourceMotion () const |
float | GetSampleTime () const |
size_t | GetFrameIndex () const |
bool | GetMirrored () const |
void | SetSourceMotion (Motion *sourceMotion) |
void | SetSampleTime (float sampleTime) |
void | SetFrameIndex (size_t frameIndex) |
void | SetMirrored (bool enabled) |
A motion matching frame. This holds information required in order to extract a given pose in a given motion.
void EMotionFX::MotionMatching::Frame::SamplePose | ( | Pose * | outputPose, |
float | timeOffset = 0.0f |
||
) | const |
Sample the pose for the given frame.
[in] | outputPose | The pose used to store the sampled result. |
[in] | timeOffset | Frames in the frame database are samples with a given sample rate (default = 30 fps). For calculating velocities for example, it is needed to sample a pose close to a frame but not exactly at the frame position. The timeOffset parameter can be used for that and represents the offset in time from the frame sample time in seconds. In case the time offset is 0.0, the pose exactly at the frame position will be sampled. |