Class FbxAnimCurve

java.lang.Object
com.jme3.scene.plugins.fbx.obj.FbxObject
com.jme3.scene.plugins.fbx.anim.FbxAnimCurve

public class FbxAnimCurve extends FbxObject
  • Constructor Details

  • Method Details

    • fromElement

      public void fromElement(FbxElement element)
      Overrides:
      fromElement in class FbxObject
    • 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

      protected Object toJmeObject()
      Specified by:
      toJmeObject in class FbxObject
    • connectObject

      public void connectObject(FbxObject object)
      Specified by:
      connectObject in class FbxObject
    • connectObjectProperty

      public void connectObjectProperty(FbxObject object, String property)
      Specified by:
      connectObjectProperty in class FbxObject