Class Orientation

java.lang.Object
gaiasky.scene.component.Orientation
All Implemented Interfaces:
com.badlogic.ashley.core.Component, ICopy
Direct Known Subclasses:
ParentOrientation

public class Orientation extends Object implements com.badlogic.ashley.core.Component, ICopy
The orientation is either a rigid rotation represented by RotationComponent, or a quaternion orientation, represented by AttitudeComponent.
  • Field Details Link icon

    • rotationComponent Link icon

      public RotationComponent rotationComponent
      Holds information about the rotation of the body, represented as rotation parameters.
    • attitudeComponent Link icon

      public AttitudeComponent attitudeComponent
      Holds the guy that returns a quaternion for each time.
  • Constructor Details Link icon

    • Orientation Link icon

      public Orientation()
  • Method Details Link icon

    • setRotation Link icon

      public void setRotation(RotationComponent rigidRotation)
      Sets the rotation period in hours
    • setRigidRotation Link icon

      public void setRigidRotation(RotationComponent rotationComponent)
    • updateRotation Link icon

      public void updateRotation(RotationComponent rigidRotation)
    • updateRigidRotation Link icon

      public void updateRigidRotation(RotationComponent rigidRotation)
    • setOrientationProvider Link icon

      public void setOrientationProvider(String provider)
    • setProvider Link icon

      public void setProvider(String provider)
    • setAttitudeProvider Link icon

      public void setAttitudeProvider(String provider)
    • setOrientationSource Link icon

      public void setOrientationSource(String source)
    • setAttitudeLocation Link icon

      public void setAttitudeLocation(String source)
    • getCopy Link icon

      public com.badlogic.ashley.core.Component getCopy(com.badlogic.ashley.core.Engine engine)
      Specified by:
      getCopy in interface ICopy
    • initialize Link icon

      public void initialize(com.badlogic.gdx.assets.AssetManager manager)
    • setUp Link icon

      public void setUp(com.badlogic.gdx.assets.AssetManager manager)
    • getNonRotatedPos Link icon

      public Vector3D getNonRotatedPos()