Class Pose

java.lang.Object
dev.oxydien.mathimations.model.Pose

public class Pose extends Object
Represents the complete pose of an entity at a point in time. Contains the state of all model parts.
  • Constructor Details

  • Method Details

    • getPart

      public ModelPartState getPart(String partName)
      Get the state of a specific model part
      Parameters:
      partName - The name/path of the part (e.g., "body/head" or "ROOT")
      Returns:
      The ModelPartState or null if not present
    • setPart

      public void setPart(String partName, ModelPartState state)
      Set the state of a specific model part
    • createDefault

      public static Pose createDefault(Collection<String> partNames)
      Create a default pose with all parts at zero (scale = 1.0)
      Parameters:
      partNames - All the part names in the model
      Returns:
      A new Pose with default values
    • getPartNames

      public Set<String> getPartNames()
      Get all part names in this pose
    • copy

      public Pose copy()
      Create a deep copy of this pose
    • toString

      public String toString()
      Overrides:
      toString in class Object