Interface IModelRotatePart


  • public interface IModelRotatePart
    Represents the rotation settings for a specific part of a model. Allows configuring the rotation angles along the X, Y, and Z axes as well as enabling/disabling the rotation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean disabled()
      Checks whether rotation is disabled for this part.
      void disabled​(boolean enabled)
      Enables or disables rotation for this part.
      float getRotateX()
      Returns the rotation angle around the X-axis.
      float getRotateY()
      Returns the rotation angle around the Y-axis.
      float getRotateZ()
      Returns the rotation angle around the Z-axis.
      void setRotation​(float x, float y, float z)
      Sets the rotation angles for this model part.
    • Method Detail

      • setRotation

        void setRotation​(float x,
                         float y,
                         float z)
        Sets the rotation angles for this model part.
        Parameters:
        x - the rotation angle around the X-axis.
        y - the rotation angle around the Y-axis.
        z - the rotation angle around the Z-axis.
      • getRotateX

        float getRotateX()
        Returns the rotation angle around the X-axis.
        Returns:
        the X-axis rotation.
      • getRotateY

        float getRotateY()
        Returns the rotation angle around the Y-axis.
        Returns:
        the Y-axis rotation.
      • getRotateZ

        float getRotateZ()
        Returns the rotation angle around the Z-axis.
        Returns:
        the Z-axis rotation.
      • disabled

        void disabled​(boolean enabled)
        Enables or disables rotation for this part.
        Parameters:
        enabled - true to disable rotation; false to enable.
      • disabled

        boolean disabled()
        Checks whether rotation is disabled for this part.
        Returns:
        true if rotation is disabled; false otherwise.