Class TransformData
java.lang.Object
com.ardor3d.extension.animation.skeletal.clip.TransformData
- All Implemented Interfaces:
Savable
- Direct Known Subclasses:
JointData
Describes a relative transform as a Quaternion-Vector-Vector tuple. We use QVV to make it simpler to do LERP
blending.
-
Constructor Summary
ConstructorDescriptionConstruct a new, identity transform data object.TransformData
(TransformData source) Construct a new transform data object, copying the value of the given source. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
blend
(TransformData blendTo, double blendWeight, TransformData store) Blend this transform with the given transform.Class
<? extends TransformData> getScale()
void
read
(InputCapsule capsule) void
set
(TransformData source) Copy the source's values into this transform data object.void
setRotation
(double x, double y, double z, double w) void
setRotation
(ReadOnlyQuaternion rotation) void
setScale
(double x, double y, double z) void
setScale
(ReadOnlyVector3 scale) void
setTranslation
(double x, double y, double z) void
setTranslation
(ReadOnlyVector3 translation) void
write
(OutputCapsule capsule)
-
Constructor Details
-
TransformData
public TransformData()Construct a new, identity transform data object. -
TransformData
Construct a new transform data object, copying the value of the given source.- Parameters:
source
- our source to copy.- Throws:
NullPointerException
- if source is null.
-
-
Method Details
-
set
Copy the source's values into this transform data object.- Parameters:
source
- our source to copy.- Throws:
NullPointerException
- if source is null.
-
getRotation
-
setRotation
-
setRotation
public void setRotation(double x, double y, double z, double w) -
getScale
-
setScale
-
setScale
public void setScale(double x, double y, double z) -
getTranslation
-
setTranslation
-
setTranslation
public void setTranslation(double x, double y, double z) -
applyTo
-
applyTo
-
blend
Blend this transform with the given transform.- Parameters:
blendTo
- The transform to blend toblendWeight
- The blend weightstore
- The transform store.- Returns:
- The blended transform.
-
getClassTag
- Specified by:
getClassTag
in interfaceSavable
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-