TrinityCore
|
#include <PhysicsFrameSpline.h>
Public Member Functions | |
PhysicsFrameSpline () | |
PhysicsFrameSpline (const Any &any) | |
bool | operator== (const PhysicsFrameSpline &a) const |
bool | operator!= (const PhysicsFrameSpline &a) const |
void | scaleControlPoints (float scaleFactor) |
virtual void | correct (PhysicsFrame &frame) const |
virtual void | ensureShortestPath (PhysicsFrame *A, int N) const |
virtual Any | toAny (const std::string &myName) const override |
Any | toAny () const |
Public Member Functions inherited from G3D::Spline< PhysicsFrame > | |
Spline () | |
Spline (const Any &any) | |
void | append (float t, const PhysicsFrame &c) |
void | append (const PhysicsFrame &c) |
void | clear () |
int | size () const |
void | getControl (int i, float &t, PhysicsFrame &c) const |
PhysicsFrame | evaluate (float s) const |
Public Member Functions inherited from G3D::SplineBase | |
SplineBase () | |
virtual | ~SplineBase () |
float | getFinalInterval () const |
float | duration () const |
void | computeIndex (float s, int &i, float &u) const |
Additional Inherited Members | |
Static Public Member Functions inherited from G3D::SplineBase | |
static Matrix4 | computeBasis () |
Public Attributes inherited from G3D::Spline< PhysicsFrame > | |
Array< PhysicsFrame > | control |
Public Attributes inherited from G3D::SplineBase | |
Array< float > | time |
SplineExtrapolationMode | extrapolationMode |
float | finalInterval |
SplineInterpolationMode | interpolationMode |
Protected Member Functions inherited from G3D::Spline< PhysicsFrame > | |
void | getControls (int i, float *T, PhysicsFrame *A, int N) const |
virtual void | init (AnyTableReader &propertyTable) |
Protected Member Functions inherited from G3D::SplineBase | |
void | computeIndexInBounds (float s, int &i, float &u) const |
Protected Attributes inherited from G3D::Spline< PhysicsFrame > | |
PhysicsFrame | zero |
A subclass of Spline that keeps the rotation field of a PhysicsFrame normalized and rotating the short direction.
Accepts a table of properties, or any valid PhysicsFrame specification for a single control
|
virtual |
Normalize or otherwise adjust this interpolated Control.
Reimplemented from G3D::Spline< PhysicsFrame >.
|
virtual |
Mutates the array of N control points that begins at A. It is useful to override this method by one that wraps the values if they are angles or quaternions for which "shortest path" interpolation is significant.
Reimplemented from G3D::Spline< PhysicsFrame >.
|
inline |
bool G3D::PhysicsFrameSpline::operator== | ( | const PhysicsFrameSpline & | a | ) | const |
void G3D::PhysicsFrameSpline::scaleControlPoints | ( | float | scaleFactor | ) |
Mutates all underlying PhysicsFrames by scaling their translation by
scaleFactor |
|
inlineoverridevirtual |
Note that invoking classes can call setName on the returned value instead of passing a name in.
Reimplemented from G3D::Spline< PhysicsFrame >.
|
inline |