Class IScaleComponent
Defined in File IScaleComponent.h
Inheritance Relationships
Derived Types
public csp::multiplayer::ITransformComponent
(Class ITransformComponent)public csp::multiplayer::ReflectionSpaceComponent
(Class ReflectionSpaceComponent)
Class Documentation
-
class IScaleComponent
Controls the 3D scale of the component.
Subclassed by csp::multiplayer::ITransformComponent, csp::multiplayer::ReflectionSpaceComponent
Public Functions
-
virtual const csp::common::Vector3 &GetScale() const = 0
Gets the scale of the origin of this component in world space.
Note
The coordinate system used follows the glTF 2.0 specification.
Right handed coordinate system
+Y is UP
+X is left (facing forward)
+Z is forward
- Returns
csp::common::Vector3 : The 3D scale as a vector (left, up, forward).
-
virtual void SetScale(const csp::common::Vector3 &InValue) = 0
Sets the scale of the origin of this component in world space to the specified value.
Note
The coordinate system used follows the glTF 2.0 specification.
Right handed coordinate system
+Y is UP
+X is left (facing forward)
+Z is forward
- Parameters
InValue – csp::common::Vector3 : The new value expressed as a vector (left, up, forward).
Protected Functions
-
virtual ~IScaleComponent() = default
-
virtual const csp::common::Vector3 &GetScale() const = 0