Motive Animation System
An open source project by FPL.
 All Classes Functions Variables Typedefs Friends Pages
motive::MotiveTargetBuilderTemplate< VectorConverter, kDimensionsT > Class Template Reference

Utility functions to construct MotiveTargets of dimension >= 2. More...

#include <target.h>

Detailed Description

template<class VectorConverter, int kDimensionsT>
class motive::MotiveTargetBuilderTemplate< VectorConverter, kDimensionsT >

Utility functions to construct MotiveTargets of dimension >= 2.

Public Types

typedef VectorT< C,
kDimensionsT >::type 
Vec
 
typedef MotiveTargetN
< kDimensionsT > 
MotiveTarget
 
typedef const Vec & VecIn
 

Static Public Member Functions

static MotiveTarget Current (VecIn current_value, VecIn current_velocity=Vec(0.0f))
 
static MotiveTarget Target (VecIn target_value, VecIn target_velocity, MotiveTime target_time, motive::ModularDirection direction=motive::kDirectionClosest)
 
static MotiveTarget CurrentToTarget (VecIn current_value, VecIn current_velocity, VecIn target_value, VecIn target_velocity, MotiveTime target_time, motive::ModularDirection direction=motive::kDirectionClosest)
 Set both the current and target values for an Motivator.
 
static MotiveTarget CurrentToTargetConstVelocity (VecIn current_value, VecIn target_value, MotiveTime target_time)
 Move from the current value to the target value at a constant speed.
 

Static Public Attributes

static const int kDimensions = kDimensionsT
 

Member Function Documentation

template<class VectorConverter , int kDimensionsT>
static MotiveTarget motive::MotiveTargetBuilderTemplate< VectorConverter, kDimensionsT >::Current ( VecIn  current_value,
VecIn  current_velocity = Vec(0.0f) 
)
inlinestatic

Set the Motivator's current values. Target values are reset to be the same as the new current values.

template<class VectorConverter , int kDimensionsT>
static MotiveTarget motive::MotiveTargetBuilderTemplate< VectorConverter, kDimensionsT >::Target ( VecIn  target_value,
VecIn  target_velocity,
MotiveTime  target_time,
motive::ModularDirection  direction = motive::kDirectionClosest 
)
inlinestatic

Keep the Motivator's current values, but set the Motivator's target values. If Motivator uses modular arithmetic, traverse from the current to the target according to 'direction'.


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