Package com.jme3.scene.plugins.fbx.anim
Class FbxAnimCurve
java.lang.Object
com.jme3.scene.plugins.fbx.obj.FbxObject
com.jme3.scene.plugins.fbx.anim.FbxAnimCurve
-
Field Summary
Fields inherited from class com.jme3.scene.plugins.fbx.obj.FbxObject
assetManager, className, id, jmeObject, name, sceneFolderName, subclassName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectObject(FbxObject object) voidconnectObjectProperty(FbxObject object, String property) voidfromElement(FbxElement element) long[]Get the times for the keyframes.floatgetValueAtTime(long time) Retrieve the curve value at the given time.protected ObjectMethods inherited from class com.jme3.scene.plugins.fbx.obj.FbxObject
getClassName, getFullClassName, getId, getJmeObject, getName, getSubclassName, isJmeObjectCreated, toString, unsupportedConnectObject, unsupportedConnectObjectProperty
-
Constructor Details
-
FbxAnimCurve
-
-
Method Details
-
fromElement
- Overrides:
fromElementin classFbxObject
-
getKeyTimes
public long[] getKeyTimes()Get the times for the keyframes.- Returns:
- Keyframe times.
-
getValueAtTime
public float getValueAtTime(long time) Retrieve the curve value at the given time. If the curve has no data, 0 is returned. If the time is outside the curve, then the closest value is returned. If the time isn't on an exact keyframe, linear interpolation is used to determine the value between the keyframes at the given time.- Parameters:
time- The time to get the curve value at (in FBX time units).- Returns:
- The value at the given time.
-
toJmeObject
- Specified by:
toJmeObjectin classFbxObject
-
connectObject
- Specified by:
connectObjectin classFbxObject
-
connectObjectProperty
- Specified by:
connectObjectPropertyin classFbxObject
-