Package gaiasky.scene.component
Class Orientation
java.lang.Object
gaiasky.scene.component.Orientation
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
,ICopy
- Direct Known Subclasses:
ParentOrientation
The orientation is either a rigid rotation represented by
RotationComponent
, or
a quaternion orientation, represented by AttitudeComponent
.-
Field Summary
Modifier and TypeFieldDescriptionHolds the guy that returns a quaternion for each time.Holds information about the rotation of the body, represented as rotation parameters. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.ashley.core.Component
getCopy
(com.badlogic.ashley.core.Engine engine) void
initialize
(com.badlogic.gdx.assets.AssetManager manager) void
setAttitudeLocation
(String source) void
setAttitudeProvider
(String provider) void
setOrientationProvider
(String provider) void
setOrientationSource
(String source) void
setProvider
(String provider) void
setRigidRotation
(RotationComponent rotationComponent) void
setRotation
(RotationComponent rigidRotation) Sets the rotation period in hoursvoid
setUp
(com.badlogic.gdx.assets.AssetManager manager) void
updateRigidRotation
(RotationComponent rigidRotation) void
updateRotation
(RotationComponent rigidRotation)
-
Field Details
-
rotationComponent
Holds information about the rotation of the body, represented as rotation parameters. -
attitudeComponent
Holds the guy that returns a quaternion for each time.
-
-
Constructor Details
-
Orientation
public Orientation()
-
-
Method Details
-
setRotation
Sets the rotation period in hours -
setRigidRotation
-
updateRotation
-
updateRigidRotation
-
setOrientationProvider
-
setProvider
-
setAttitudeProvider
-
setOrientationSource
-
setAttitudeLocation
-
getCopy
public com.badlogic.ashley.core.Component getCopy(com.badlogic.ashley.core.Engine engine) -
initialize
public void initialize(com.badlogic.gdx.assets.AssetManager manager) -
setUp
public void setUp(com.badlogic.gdx.assets.AssetManager manager) -
getNonRotatedPos
-