Nebula
|
#include <animutil.h>
A class which contains utility methods for animation sampling and mixing.
(C) 2008 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Static Public Member Functions | |
static void | Sample (const AnimResourceId &animResource, IndexT clipIndex, SampleType::Code sampleType, Timing::Tick time, float timeFactor, const Ptr< AnimSampleBuffer > &result) |
OBSOLETE: sample an animation clip at some point in time into an AnimSampleBuffer. | |
static Ptr< Jobs::Job > | CreateSampleJob (const AnimResourceId &animResource, IndexT clipIndex, SampleType::Code sampleType, Timing::Tick time, float timeFactor, const Characters::CharacterJointMask *mask, const Ptr< AnimSampleBuffer > &result) |
setup a job object which performs sampling | |
static Ptr< Jobs::Job > | CreateSampleAndMixJob (const AnimResourceId &animResource, IndexT clipIndex, SampleType::Code sampleType, Timing::Tick time, float timeFactor, const Characters::CharacterJointMask *mask, float mixWeight, const Ptr< AnimSampleBuffer > &mixIn, const Ptr< AnimSampleBuffer > &result) |
setup a job which performs both sampling and mixing | |
static IndexT | ClampKeyIndex (IndexT keyIndex, const AnimClip &clip) |
clamp key index into valid range | |
static Timing::Tick | InbetweenTicks (Timing::Tick sampleTime, const AnimClip &clip) |
compute inbetween ticks for a given sample time | |
clamp key index into valid range
Clamp key indices into the valid range, take pre-infinity and post-infinity type into account.
|
static |
setup a job which performs both sampling and mixing
Create a job which performs both sampling and mixing.
|
static |
setup a job object which performs sampling
Create a job object which is setup to perform simple animation sampling.
|
static |
compute inbetween ticks for a given sample time
Compute the inbetween-ticks between two frames for a given sample time.
|
static |
OBSOLETE: sample an animation clip at some point in time into an AnimSampleBuffer.
NOTE: this method is obsolete NOTE: The sampler will NOT the start time of the clip into account! TODO: seperate delta computation from default sampling, set curveindex from jointname in characterinstance !!!