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

    • rotationComponent

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

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

    • Orientation

      public Orientation()
  • Method Details

    • setRotation

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

      public void setRigidRotation(RotationComponent rotationComponent)
    • updateRotation

      public void updateRotation(RotationComponent rigidRotation)
    • updateRigidRotation

      public void updateRigidRotation(RotationComponent rigidRotation)
    • setOrientationProvider

      public void setOrientationProvider(String provider)
    • setProvider

      public void setProvider(String provider)
    • setAttitudeProvider

      public void setAttitudeProvider(String provider)
    • setOrientationSource

      public void setOrientationSource(String source)
    • setAttitudeLocation

      public void setAttitudeLocation(String source)
    • getCopy

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

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

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

      public Vector3d getNonRotatedPos()