Class IRotationComponent
Defined in File IRotationComponent.h
Inheritance Relationships
Derived Types
public csp::multiplayer::CinematicCameraSpaceComponent
(Class CinematicCameraSpaceComponent)public csp::multiplayer::ConversationSpaceComponent
(Class ConversationSpaceComponent)public csp::multiplayer::HotspotSpaceComponent
(Class HotspotSpaceComponent)public csp::multiplayer::ITransformComponent
(Class ITransformComponent)public csp::multiplayer::LightSpaceComponent
(Class LightSpaceComponent)
Class Documentation
-
class IRotationComponent
Controls the 3D rotation of the component.
Subclassed by csp::multiplayer::CinematicCameraSpaceComponent, csp::multiplayer::ConversationSpaceComponent, csp::multiplayer::HotspotSpaceComponent, csp::multiplayer::ITransformComponent, csp::multiplayer::LightSpaceComponent
Public Functions
-
virtual const csp::common::Vector4 &GetRotation() const = 0
Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
Note
The coordinate system respects the following conventions:
Right handed coordinate system
Positive rotation is counterclockwise
The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
North: +Z
East: -X
South: -Z
West: +X
- Returns
csp::common::Vector4 : The 3D rotation as a quaternion.
-
virtual void SetRotation(const csp::common::Vector4 &InValue) = 0
Sets the rotation of the origin of this component according to the specified quaternion “Value”, expressed in radians.
Note
The coordinate system respects the following conventions:
Right handed coordinate system
Positive rotation is counterclockwise
The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
North: +Z
East: -X
South: -Z
West: +X
- Parameters
InValue – csp::common::Vector4 : The new value expressed as a quaternion.
Protected Functions
-
virtual ~IRotationComponent() = default
-
virtual const csp::common::Vector4 &GetRotation() const = 0