Struct TransformComponent#
Defined in File Components.h
Struct Documentation#
-
struct TransformComponent#
Transform component. Every entity has a transform component containing position, rotation and scale.
Public Functions
-
constexpr TransformComponent() noexcept = default#
Constructor.
-
inline explicit TransformComponent(const TRAP::Math::Vec3 &position) noexcept#
Constructor.
- Parameters:
position – Position to use.
-
inline constexpr TransformComponent(const TRAP::Math::Vec3 &position, const TRAP::Math::Vec3 &rotationInRadians) noexcept#
Constructor.
- Parameters:
position – Position to use.
rotationInRadians – Rotation to use.
-
constexpr TransformComponent() noexcept = default#