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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectObject
(FbxObject object) void
connectObjectProperty
(FbxObject object, String property) void
fromElement
(FbxElement element) long[]
Get the times for the keyframes.float
getValueAtTime
(long time) Retrieve the curve value at the given time.protected Object
Methods 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:
fromElement
in 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:
toJmeObject
in classFbxObject
-
connectObject
- Specified by:
connectObject
in classFbxObject
-
connectObjectProperty
- Specified by:
connectObjectProperty
in classFbxObject
-