public class JointChannel extends Object implements Serializable
Skeletal animation data related to a single Joint
.
Channel data is in Joint's local space and directly applied to local transform
of SkeletonPose
related to Joint.
This class is originally adapted from Ardor3D.
SkinClip
,
Joint
,
Serialized FormConstructor and Description |
---|
JointChannel(int jointIndex,
float[] times,
SimpleVector[] translations,
Quaternion[] rotations,
SimpleVector[] scales)
Creates a new JointChannel out of given data.
|
Modifier and Type | Method and Description |
---|---|
int |
getJointIndex()
returns the index of joint this channel is related to.
|
int |
getLength()
returns number of samples in this channel
|
Quaternion[] |
getRotations()
returns a copy of rotations array
|
SimpleVector[] |
getScales()
returns a copy of scales array
|
float |
getTime()
returns length of this channel in seconds
|
float[] |
getTimes()
returns a copy of times array
|
SimpleVector[] |
getTranslations()
returns a copy of translations array
|
public JointChannel(int jointIndex, float[] times, SimpleVector[] translations, Quaternion[] rotations, SimpleVector[] scales)
Creates a new JointChannel out of given data. The arrays must be same length.
public int getJointIndex()
public float getTime()
public int getLength()
public float[] getTimes()
public Quaternion[] getRotations()
public SimpleVector[] getTranslations()
public SimpleVector[] getScales()