Support Forum       G3D Web Page     
Public Types | Public Member Functions | Public Attributes | List of all members
G3D::ArticulatedModel::PoseSpline Class Reference

Public Types

typedef Table< String, PhysicsFrameSplineSplineTable
 

Public Member Functions

 PoseSpline ()
 
 PoseSpline (const Any &any)
 
The Any must be a table mapping part names to PhysicsFrameSplines. More...
 
void get (float t, ArticulatedModel::Pose &pose)
 Get the pose.cframeTable at time t, overriding values in pose that are specified by the spline table. More...
 

Public Attributes

SplineTable partSpline
 

Member Typedef Documentation

◆ SplineTable

Constructor & Destructor Documentation

◆ PoseSpline() [1/2]

G3D::ArticulatedModel::PoseSpline::PoseSpline ( )

◆ PoseSpline() [2/2]

G3D::ArticulatedModel::PoseSpline::PoseSpline ( const Any any)


The Any must be a table mapping part names to PhysicsFrameSplines.

Note that a single PhysicsFrame (or any equivalent of it) can serve as to create a PhysicsFrameSpline.
Format example:

ArticulatedModel::PoseSpline {
"part1" = PhysicsFrameSpline {
control = ( Vector3(0,0,0),
CFrame::fromXYZYPRDegrees(0,1,0,35)),
cyclic = true
};
"part2" = Vector3(0,1,0);
}

Member Function Documentation

◆ get()

void G3D::ArticulatedModel::PoseSpline::get ( float  t,
ArticulatedModel::Pose pose 
)

Get the pose.cframeTable at time t, overriding values in pose that are specified by the spline table.

Member Data Documentation

◆ partSpline

SplineTable G3D::ArticulatedModel::PoseSpline::partSpline

documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15