Class FbxToJmeTrack

java.lang.Object
com.jme3.scene.plugins.fbx.anim.FbxToJmeTrack

public final class FbxToJmeTrack extends Object
Maps animation stacks to influenced nodes. Will be used later to create jME3 tracks.
  • Field Details

  • Constructor Details

    • FbxToJmeTrack

      public FbxToJmeTrack()
  • Method Details

    • getKeyTimes

      public long[] getKeyTimes()
    • toJmeBoneTrack

      public BoneTrack toJmeBoneTrack(int boneIndex, Transform inverseBindPose)
      Generate a BoneTrack from the animation data, for the given boneIndex.
      Parameters:
      boneIndex - The bone index for which track data is generated for.
      inverseBindPose - Inverse bind pose of the bone (in world space).
      Returns:
      A BoneTrack containing the animation data, for the specified boneIndex.
    • toJmeSpatialTrack

      public SpatialTrack toJmeSpatialTrack()
    • countKeyframes

      public int countKeyframes()
      Counts how many keyframes there are in the included curves.
      Returns:
      the total number of keyframes (≥0)
    • getDuration

      public float getDuration()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object