Package com.jme3.anim.interpolator
Class FrameInterpolator
java.lang.Object
com.jme3.anim.interpolator.FrameInterpolator
Created by nehon on 15/04/17.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FrameInterpolator
Obtain the default interpolator for the current thread.interpolate
(float t, int currentIndex, CompactVector3Array translations, CompactQuaternionArray rotations, CompactVector3Array scales, float[] times) void
interpolateWeights
(float t, int currentIndex, float[] weights, int nbMorphTargets, float[] store) void
setRotationInterpolator
(AnimInterpolator<Quaternion> rotationInterpolator) void
setScaleInterpolator
(AnimInterpolator<Vector3f> scaleInterpolator) void
setTimeInterpolator
(AnimInterpolator<Float> timeInterpolator) void
setTranslationInterpolator
(AnimInterpolator<Vector3f> translationInterpolator)
-
Field Details
-
DEFAULT
Deprecated.A global default instance of this class, for compatibility with JME v3.5. Due to issue #1806, use of this instance is discouraged.
-
-
Constructor Details
-
FrameInterpolator
public FrameInterpolator()
-
-
Method Details
-
getThreadDefault
Obtain the default interpolator for the current thread.- Returns:
- the pre-existing instance (not null)
-
interpolate
public Transform interpolate(float t, int currentIndex, CompactVector3Array translations, CompactQuaternionArray rotations, CompactVector3Array scales, float[] times) -
interpolateWeights
public void interpolateWeights(float t, int currentIndex, float[] weights, int nbMorphTargets, float[] store) -
setTimeInterpolator
-
setTranslationInterpolator
-
setRotationInterpolator
-
setScaleInterpolator
-
getThreadDefault()