Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::transform_component Class Reference

Component that handles transformations (position, rotation, scale, etc.) in the ACE framework. More...

#include <transform_component.h>

Inheritance diagram for unravel::transform_component:
unravel::component_crtp< transform_component, owned_component > unravel::owned_component unravel::basic_component

Classes

struct  dirty_ids
 Reserved consumer slots for the indexed dirty flags (see is_dirty(id)/set_dirty(id, ...)). More...
 

Public Types

using flags_t = std::bitset<8>
 
- Public Types inherited from unravel::component_crtp< transform_component, owned_component >
using base
 

Public Member Functions

void resolve_transform_global () noexcept
 TRANSFORMS.
 
auto get_transform_global () const noexcept -> const math::transform &
 Gets the global transform.
 
auto set_transform_global (const math::transform &trans) noexcept -> bool
 Sets the global transform.
 
auto set_transform_global_epsilon (const math::transform &trans, float epsilon) noexcept -> bool
 
auto get_transform_local () const noexcept -> const math::transform &
 Gets the local transform.
 
void set_transform_local (const math::transform &trans) noexcept
 Sets the local transform.
 
auto get_position_global () const noexcept -> const math::vec3 &
 TRANSLATION.
 
void set_position_global (const math::vec3 &position) noexcept
 Sets the global position.
 
void move_by_global (const math::vec3 &amount) noexcept
 Moves the component by a specified amount globally.
 
void reset_position_global () noexcept
 Resets the global position to the origin.
 
auto get_position_local () const noexcept -> const math::vec3 &
 Gets the local position.
 
void set_position_local (const math::vec3 &position) noexcept
 Sets the local position.
 
void move_by_local (const math::vec3 &amount) noexcept
 Moves the component by a specified amount locally.
 
void reset_position_local () noexcept
 Resets the local position to the origin.
 
auto set_position_and_rotation_global (const math::vec3 &position, const math::quat &rotation, float epsilon) noexcept -> bool
 
auto get_rotation_global () const noexcept -> const math::quat &
 ROTATION.
 
void set_rotation_global (const math::quat &rotation) noexcept
 Sets the global rotation.
 
void rotate_by_global (const math::quat &rotation) noexcept
 Rotates the component by a specified amount globally.
 
void reset_rotation_global () noexcept
 Resets the global rotation to the default orientation.
 
auto get_rotation_local () const noexcept -> const math::quat &
 Gets the local rotation.
 
void set_rotation_local (const math::quat &rotation) noexcept
 Sets the local rotation.
 
void rotate_by_local (const math::quat &rotation) noexcept
 Rotates the component by a specified amount locally.
 
void reset_rotation_local () noexcept
 Resets the local rotation to the default orientation.
 
auto get_rotation_euler_global () const noexcept -> math::vec3
 Gets the global rotation in Euler angles.
 
void set_rotation_euler_global (math::vec3 rotation) noexcept
 Sets the global rotation in Euler angles.
 
void rotate_by_euler_global (math::vec3 rotation) noexcept
 Rotates the component by a specified amount in Euler angles globally.
 
auto get_rotation_euler_local () const noexcept -> math::vec3
 Gets the local rotation in Euler angles.
 
void set_rotation_euler_local (math::vec3 rotation) noexcept
 Sets the local rotation in Euler angles.
 
void rotate_by_euler_local (math::vec3 rotation) noexcept
 Rotates the component by a specified amount in Euler angles locally.
 
void rotate_axis_global (float degrees, const math::vec3 &axis) noexcept
 Rotates the component around a specified axis globally.
 
void rotate_around_global (const math::vec3 &point, const math::vec3 &axis, float degrees)
 
void rotate_around_global (const math::vec3 &point, const math::quat &rotation)
 
void look_at (const math::vec3 &point) noexcept
 Orients the component to look at a specified point.
 
void look_at (const math::vec3 &point, const math::vec3 &up) noexcept
 
auto get_scale_global () const noexcept -> const math::vec3 &
 SCALE.
 
void set_scale_global (const math::vec3 &scale) noexcept
 Sets the global scale.
 
void scale_by_global (const math::vec3 &scale) noexcept
 Scales the component by a specified amount globally.
 
void reset_scale_global () noexcept
 Resets the global scale to the default value.
 
auto get_scale_local () const noexcept -> const math::vec3 &
 Gets the local scale.
 
void set_scale_local (const math::vec3 &scale) noexcept
 Sets the local scale.
 
void scale_by_local (const math::vec3 &scale) noexcept
 Scales the component by a specified amount locally.
 
void reset_scale_local () noexcept
 Resets the local scale to the default value.
 
auto get_skew_global () const noexcept -> const math::vec3 &
 SKEW.
 
void set_skew_global (const math::vec3 &s) noexcept
 Sets the global skew.
 
auto get_skew_local () const noexcept -> const math::vec3 &
 Gets the local skew.
 
void set_skew_local (const math::vec3 &s) noexcept
 Sets the local skew.
 
auto get_perspective_global () const noexcept -> const math::vec4 &
 PERSPECTIVE.
 
void set_perspective_global (const math::vec4 &p) noexcept
 Sets the global perspective.
 
auto get_perspective_local () const noexcept -> const math::vec4 &
 Gets the local perspective.
 
void set_perspective_local (const math::vec4 &p) noexcept
 Sets the local perspective.
 
auto get_x_axis_global () const noexcept -> math::vec3
 BASIS.
 
auto get_x_axis_local () const noexcept -> math::vec3
 Gets the local X-axis.
 
auto get_y_axis_global () const noexcept -> math::vec3
 Gets the global Y-axis.
 
auto get_y_axis_local () const noexcept -> math::vec3
 Gets the local Y-axis.
 
auto get_z_axis_global () const noexcept -> math::vec3
 Gets the global Z-axis.
 
auto get_z_axis_local () const noexcept -> math::vec3
 Gets the local Z-axis.
 
auto to_local (const math::vec3 &point) const noexcept -> math::vec3
 SPACE UTILS.
 
auto get_parent () const noexcept -> entt::handle
 RELATIONSHIP.
 
auto set_parent (const entt::handle &parent, bool global_stays=true) -> bool
 Sets the parent entity.
 
auto get_children () const noexcept -> const std::vector< entt::handle > &
 Gets the child entities.
 
void set_children (const std::vector< entt::handle > &children)
 Sets the child entities.
 
void sort_children () noexcept
 Sorts the child entities.
 
void set_active (bool active) noexcept
 Sets the active flag.
 
auto is_active () const noexcept -> bool
 Checks if the component is active.
 
auto is_active_global () const noexcept -> bool
 
void set_dirty (bool dirty) noexcept
 Sets the dirty flag.
 
auto is_dirty () const noexcept -> bool
 Checks if the component is dirty.
 
void set_dirty (uint8_t id, bool dirty) noexcept
 Sets the dirty flag for a specific index.
 
auto is_dirty (uint8_t id) const noexcept -> bool
 Checks if the component is dirty for a specific index.
 
void mark_consumers_dirty () noexcept
 Sets every consumer dirty bit, forcing all indexed consumers (physics sync, model pose refresh, ...) to re-consume this transform even if it did not change. Used by tooling (e.g. inspector edits) to wake consumers of derived data.
 
void _clear_relationships ()
 Clears the relationships of the component.
 
- Public Member Functions inherited from unravel::owned_component
auto operator= (const owned_component &other) -> owned_component &=default
 
void set_owner (entt::handle owner)
 Sets the owner of the component.
 
auto get_owner () const noexcept -> entt::const_handle
 Gets the owner of the component.
 
auto get_owner () noexcept -> entt::handle
 Gets the owner of the component.
 
- Public Member Functions inherited from unravel::basic_component
void touch ()
 Marks the component as 'touched'.
 

Static Public Member Functions

static void on_create_component (entt::registry &r, entt::entity e)
 Called when the component is created.
 
static void on_destroy_component (entt::registry &r, entt::entity e)
 Called when the component is destroyed.
 
static auto get_top_level_entities (const std::vector< entt::handle > &list) -> std::vector< entt::handle >
 
static auto get_top_level_entities (const std::vector< entt::handle * > &list) -> std::vector< entt::handle >
 
static auto is_parent_of (entt::handle parent_to_test, entt::handle child) -> bool
 
- Static Public Member Functions inherited from unravel::owned_component
template<typename T >
static void on_create_component (entt::registry &r, entt::entity e)
 
template<typename T >
static void on_destroy_component (entt::registry &r, entt::entity e)
 

Additional Inherited Members

- Public Attributes inherited from unravel::basic_component
bool eto {}
 Disable empty type optimizations.
 
- Static Public Attributes inherited from unravel::component_crtp< transform_component, owned_component >
static constexpr bool in_place_delete
 Indicates if the component can be deleted in place.
 

Detailed Description

Component that handles transformations (position, rotation, scale, etc.) in the ACE framework.

Definition at line 55 of file transform_component.h.

Member Typedef Documentation

◆ flags_t

using unravel::transform_component::flags_t = std::bitset<8>

Definition at line 58 of file transform_component.h.

Member Function Documentation

◆ _clear_relationships()

void unravel::transform_component::_clear_relationships ( )

Clears the relationships of the component.

Definition at line 625 of file transform_component.cpp.

◆ get_children()

auto unravel::transform_component::get_children ( ) const -> const std::vector<entt::handle>&
noexcept

Gets the child entities.

Returns
A constant reference to the vector of child entity handles.

Definition at line 784 of file transform_component.cpp.

◆ get_parent()

auto unravel::transform_component::get_parent ( ) const -> entt::handle
noexcept

RELATIONSHIP.

Gets the parent entity.

Returns
A handle to the parent entity.

Definition at line 698 of file transform_component.cpp.

◆ get_perspective_global()

auto unravel::transform_component::get_perspective_global ( ) const -> const math::vec4&
noexcept

PERSPECTIVE.

Gets the global perspective.

Returns
A constant reference to the global perspective.

Definition at line 553 of file transform_component.cpp.

◆ get_perspective_local()

auto unravel::transform_component::get_perspective_local ( ) const -> const math::vec4&
noexcept

Gets the local perspective.

Returns
A constant reference to the local perspective.

Definition at line 500 of file transform_component.cpp.

◆ get_position_global()

auto unravel::transform_component::get_position_global ( ) const -> const math::vec3&
noexcept

TRANSLATION.

Gets the global position.

Returns
A constant reference to the global position.

Definition at line 268 of file transform_component.cpp.

◆ get_position_local()

auto unravel::transform_component::get_position_local ( ) const -> const math::vec3&
noexcept

Gets the local position.

Returns
A constant reference to the local position.

Definition at line 297 of file transform_component.cpp.

◆ get_rotation_euler_global()

auto unravel::transform_component::get_rotation_euler_global ( ) const -> math::vec3
noexcept

Gets the global rotation in Euler angles.

Returns
The global rotation in Euler angles.

Definition at line 403 of file transform_component.cpp.

◆ get_rotation_euler_local()

auto unravel::transform_component::get_rotation_euler_local ( ) const -> math::vec3
noexcept

Gets the local rotation in Euler angles.

Returns
The local rotation in Euler angles.

Definition at line 421 of file transform_component.cpp.

◆ get_rotation_global()

auto unravel::transform_component::get_rotation_global ( ) const -> const math::quat&
noexcept

ROTATION.

Gets the global rotation.

Returns
A constant reference to the global rotation.

Definition at line 348 of file transform_component.cpp.

◆ get_rotation_local()

auto unravel::transform_component::get_rotation_local ( ) const -> const math::quat&
noexcept

Gets the local rotation.

Returns
A constant reference to the local rotation.

Definition at line 380 of file transform_component.cpp.

◆ get_scale_global()

auto unravel::transform_component::get_scale_global ( ) const -> const math::vec3&
noexcept

SCALE.

Gets the global scale.

Returns
A constant reference to the global scale.

Definition at line 535 of file transform_component.cpp.

◆ get_scale_local()

auto unravel::transform_component::get_scale_local ( ) const -> const math::vec3&
noexcept

Gets the local scale.

SCALE.

Returns
A constant reference to the local scale.

Definition at line 485 of file transform_component.cpp.

◆ get_skew_global()

auto unravel::transform_component::get_skew_global ( ) const -> const math::vec3&
noexcept

SKEW.

Gets the global skew.

Returns
A constant reference to the global skew.

Definition at line 548 of file transform_component.cpp.

◆ get_skew_local()

auto unravel::transform_component::get_skew_local ( ) const -> const math::vec3&
noexcept

Gets the local skew.

Returns
A constant reference to the local skew.

Definition at line 495 of file transform_component.cpp.

◆ get_top_level_entities() [1/2]

auto unravel::transform_component::get_top_level_entities ( const std::vector< entt::handle * > & list) -> std::vector<entt::handle>
static

Definition at line 106 of file transform_component.cpp.

◆ get_top_level_entities() [2/2]

auto unravel::transform_component::get_top_level_entities ( const std::vector< entt::handle > & list) -> std::vector<entt::handle>
static

Definition at line 150 of file transform_component.cpp.

◆ get_transform_global()

auto unravel::transform_component::get_transform_global ( ) const -> const math::transform&
noexcept

Gets the global transform.

Returns
A constant reference to the global transform.

Definition at line 243 of file transform_component.cpp.

◆ get_transform_local()

auto unravel::transform_component::get_transform_local ( ) const -> const math::transform&
noexcept

Gets the local transform.

TRANSFORMS.

Returns
A constant reference to the local transform.

Definition at line 215 of file transform_component.cpp.

◆ get_x_axis_global()

auto unravel::transform_component::get_x_axis_global ( ) const -> math::vec3
noexcept

BASIS.

Gets the global X-axis.

Returns
The global X-axis.

Definition at line 520 of file transform_component.cpp.

◆ get_x_axis_local()

auto unravel::transform_component::get_x_axis_local ( ) const -> math::vec3
noexcept

Gets the local X-axis.

Returns
The local X-axis.

Definition at line 505 of file transform_component.cpp.

◆ get_y_axis_global()

auto unravel::transform_component::get_y_axis_global ( ) const -> math::vec3
noexcept

Gets the global Y-axis.

Returns
The global Y-axis.

Definition at line 525 of file transform_component.cpp.

◆ get_y_axis_local()

auto unravel::transform_component::get_y_axis_local ( ) const -> math::vec3
noexcept

Gets the local Y-axis.

Returns
The local Y-axis.

Definition at line 510 of file transform_component.cpp.

◆ get_z_axis_global()

auto unravel::transform_component::get_z_axis_global ( ) const -> math::vec3
noexcept

Gets the global Z-axis.

Returns
The global Z-axis.

Definition at line 530 of file transform_component.cpp.

◆ get_z_axis_local()

auto unravel::transform_component::get_z_axis_local ( ) const -> math::vec3
noexcept

Gets the local Z-axis.

Returns
The local Z-axis.

Definition at line 515 of file transform_component.cpp.

◆ is_active()

auto unravel::transform_component::is_active ( ) const -> bool
noexcept

Checks if the component is active.

Returns
True if the component is active, otherwise false.

Definition at line 742 of file transform_component.cpp.

◆ is_active_global()

auto unravel::transform_component::is_active_global ( ) const -> bool
noexcept

Definition at line 747 of file transform_component.cpp.

◆ is_dirty() [1/2]

auto unravel::transform_component::is_dirty ( ) const -> bool
noexcept

Checks if the component is dirty.

Returns
True if the component is dirty, otherwise false.

Definition at line 759 of file transform_component.cpp.

◆ is_dirty() [2/2]

auto unravel::transform_component::is_dirty ( uint8_t id) const -> bool
noexcept

Checks if the component is dirty for a specific index.

Parameters
idThe index of the flag.
Returns
True if the component is dirty for the specified index, otherwise false.

Definition at line 769 of file transform_component.cpp.

◆ is_parent_of()

auto unravel::transform_component::is_parent_of ( entt::handle parent_to_test,
entt::handle child ) -> bool
static

Definition at line 101 of file transform_component.cpp.

◆ look_at() [1/2]

void unravel::transform_component::look_at ( const math::vec3 & point)
noexcept

Orients the component to look at a specified point.

Parameters
pointThe point to look at.

Definition at line 467 of file transform_component.cpp.

◆ look_at() [2/2]

void unravel::transform_component::look_at ( const math::vec3 & point,
const math::vec3 & up )
noexcept

Definition at line 472 of file transform_component.cpp.

◆ mark_consumers_dirty()

void unravel::transform_component::mark_consumers_dirty ( )
noexcept

Sets every consumer dirty bit, forcing all indexed consumers (physics sync, model pose refresh, ...) to re-consume this transform even if it did not change. Used by tooling (e.g. inspector edits) to wake consumers of derived data.

Definition at line 779 of file transform_component.cpp.

◆ move_by_global()

void unravel::transform_component::move_by_global ( const math::vec3 & amount)
noexcept

Moves the component by a specified amount globally.

Parameters
amountThe amount to move by.

Definition at line 286 of file transform_component.cpp.

◆ move_by_local()

void unravel::transform_component::move_by_local ( const math::vec3 & amount)
noexcept

Moves the component by a specified amount locally.

Parameters
amountThe amount to move by.

Definition at line 307 of file transform_component.cpp.

◆ on_create_component()

void unravel::transform_component::on_create_component ( entt::registry & r,
entt::entity e )
static

Called when the component is created.

Parameters
rThe registry containing the component.
eThe entity associated with the component.

Definition at line 69 of file transform_component.cpp.

◆ on_destroy_component()

void unravel::transform_component::on_destroy_component ( entt::registry & r,
entt::entity e )
static

Called when the component is destroyed.

Parameters
rThe registry containing the component.
eThe entity associated with the component.

Definition at line 77 of file transform_component.cpp.

◆ reset_position_global()

void unravel::transform_component::reset_position_global ( )
noexcept

Resets the global position to the origin.

Definition at line 292 of file transform_component.cpp.

◆ reset_position_local()

void unravel::transform_component::reset_position_local ( )
noexcept

Resets the local position to the origin.

Definition at line 312 of file transform_component.cpp.

◆ reset_rotation_global()

void unravel::transform_component::reset_rotation_global ( )
noexcept

Resets the global rotation to the default orientation.

Definition at line 375 of file transform_component.cpp.

◆ reset_rotation_local()

void unravel::transform_component::reset_rotation_local ( )
noexcept

Resets the local rotation to the default orientation.

Definition at line 398 of file transform_component.cpp.

◆ reset_scale_global()

void unravel::transform_component::reset_scale_global ( )
noexcept

Resets the global scale to the default value.

Definition at line 615 of file transform_component.cpp.

◆ reset_scale_local()

void unravel::transform_component::reset_scale_local ( )
noexcept

Resets the local scale to the default value.

Definition at line 620 of file transform_component.cpp.

◆ resolve_transform_global()

void unravel::transform_component::resolve_transform_global ( )
noexcept

TRANSFORMS.

Definition at line 225 of file transform_component.cpp.

◆ rotate_around_global() [1/2]

void unravel::transform_component::rotate_around_global ( const math::vec3 & point,
const math::quat & rotation )

Definition at line 459 of file transform_component.cpp.

◆ rotate_around_global() [2/2]

void unravel::transform_component::rotate_around_global ( const math::vec3 & point,
const math::vec3 & axis,
float degrees )

Definition at line 447 of file transform_component.cpp.

◆ rotate_axis_global()

void unravel::transform_component::rotate_axis_global ( float degrees,
const math::vec3 & axis )
noexcept

Rotates the component around a specified axis globally.

Parameters
degreesThe rotation amount in degrees.
axisThe axis to rotate around.

Definition at line 439 of file transform_component.cpp.

◆ rotate_by_euler_global()

void unravel::transform_component::rotate_by_euler_global ( math::vec3 rotation)
noexcept

Rotates the component by a specified amount in Euler angles globally.

Parameters
rotationThe rotation amount in Euler angles.

Definition at line 413 of file transform_component.cpp.

◆ rotate_by_euler_local()

void unravel::transform_component::rotate_by_euler_local ( math::vec3 rotation)
noexcept

Rotates the component by a specified amount in Euler angles locally.

Parameters
rotationThe rotation amount in Euler angles.

Definition at line 431 of file transform_component.cpp.

◆ rotate_by_global()

void unravel::transform_component::rotate_by_global ( const math::quat & rotation)
noexcept

Rotates the component by a specified amount globally.

Parameters
rotationThe rotation amount.

Definition at line 367 of file transform_component.cpp.

◆ rotate_by_local()

void unravel::transform_component::rotate_by_local ( const math::quat & rotation)
noexcept

Rotates the component by a specified amount locally.

Parameters
rotationThe rotation amount.

Definition at line 390 of file transform_component.cpp.

◆ scale_by_global()

void unravel::transform_component::scale_by_global ( const math::vec3 & scale)
noexcept

Scales the component by a specified amount globally.

Parameters
scaleThe scaling amount.

Definition at line 540 of file transform_component.cpp.

◆ scale_by_local()

void unravel::transform_component::scale_by_local ( const math::vec3 & scale)
noexcept

Scales the component by a specified amount locally.

Parameters
scaleThe scaling amount.

Definition at line 490 of file transform_component.cpp.

◆ set_active()

void unravel::transform_component::set_active ( bool active)
noexcept

Sets the active flag.

Parameters
activeThe active flag to set.

Definition at line 752 of file transform_component.cpp.

◆ set_children()

void unravel::transform_component::set_children ( const std::vector< entt::handle > & children)

Sets the child entities.

Parameters
childrenA vector of child entity handles.

Definition at line 789 of file transform_component.cpp.

◆ set_dirty() [1/2]

void unravel::transform_component::set_dirty ( bool dirty)
noexcept

Sets the dirty flag.

Parameters
dirtyThe dirty flag to set.

Definition at line 764 of file transform_component.cpp.

◆ set_dirty() [2/2]

void unravel::transform_component::set_dirty ( uint8_t id,
bool dirty )
noexcept

Sets the dirty flag for a specific index.

Parameters
idThe index of the flag.
dirtyThe dirty flag to set.

Definition at line 774 of file transform_component.cpp.

◆ set_parent()

auto unravel::transform_component::set_parent ( const entt::handle & parent,
bool global_stays = true ) -> bool

Sets the parent entity.

Parameters
parentA handle to the parent entity.
paramsParameters for setting the parent.
Returns
True if the parent was set successfully, otherwise false.

Definition at line 631 of file transform_component.cpp.

◆ set_perspective_global()

void unravel::transform_component::set_perspective_global ( const math::vec4 & p)
noexcept

Sets the global perspective.

Parameters
pThe global perspective to set.

Definition at line 596 of file transform_component.cpp.

◆ set_perspective_local()

void unravel::transform_component::set_perspective_local ( const math::vec4 & p)
noexcept

Sets the local perspective.

Parameters
pThe local perspective to set.

Definition at line 610 of file transform_component.cpp.

◆ set_position_and_rotation_global()

auto unravel::transform_component::set_position_and_rotation_global ( const math::vec3 & position,
const math::quat & rotation,
float epsilon ) -> bool
noexcept

Definition at line 317 of file transform_component.cpp.

◆ set_position_global()

void unravel::transform_component::set_position_global ( const math::vec3 & position)
noexcept

Sets the global position.

Parameters
positionThe global position to set.

Definition at line 273 of file transform_component.cpp.

◆ set_position_local()

void unravel::transform_component::set_position_local ( const math::vec3 & position)
noexcept

Sets the local position.

Parameters
positionThe local position to set.

Definition at line 302 of file transform_component.cpp.

◆ set_rotation_euler_global()

void unravel::transform_component::set_rotation_euler_global ( math::vec3 rotation)
noexcept

Sets the global rotation in Euler angles.

Parameters
rotationThe global rotation in Euler angles.

Definition at line 408 of file transform_component.cpp.

◆ set_rotation_euler_local()

void unravel::transform_component::set_rotation_euler_local ( math::vec3 rotation)
noexcept

Sets the local rotation in Euler angles.

Parameters
rotationThe local rotation in Euler angles.

Definition at line 426 of file transform_component.cpp.

◆ set_rotation_global()

void unravel::transform_component::set_rotation_global ( const math::quat & rotation)
noexcept

Sets the global rotation.

Parameters
rotationThe global rotation to set.

Definition at line 353 of file transform_component.cpp.

◆ set_rotation_local()

void unravel::transform_component::set_rotation_local ( const math::quat & rotation)
noexcept

Sets the local rotation.

Parameters
rotationThe local rotation to set.

Definition at line 385 of file transform_component.cpp.

◆ set_scale_global()

void unravel::transform_component::set_scale_global ( const math::vec3 & scale)
noexcept

Sets the global scale.

Parameters
scaleThe global scale to set.

Definition at line 558 of file transform_component.cpp.

◆ set_scale_local()

void unravel::transform_component::set_scale_local ( const math::vec3 & scale)
noexcept

Sets the local scale.

Parameters
scaleThe local scale to set.

Definition at line 572 of file transform_component.cpp.

◆ set_skew_global()

void unravel::transform_component::set_skew_global ( const math::vec3 & s)
noexcept

Sets the global skew.

Parameters
sThe global skew to set.

Definition at line 577 of file transform_component.cpp.

◆ set_skew_local()

void unravel::transform_component::set_skew_local ( const math::vec3 & s)
noexcept

Sets the local skew.

Parameters
sThe local skew to set.

Definition at line 591 of file transform_component.cpp.

◆ set_transform_global()

auto unravel::transform_component::set_transform_global ( const math::transform & trans) -> bool
noexcept

Sets the global transform.

Parameters
transThe global transform to set.

Definition at line 248 of file transform_component.cpp.

◆ set_transform_global_epsilon()

auto unravel::transform_component::set_transform_global_epsilon ( const math::transform & trans,
float epsilon ) -> bool
noexcept

Definition at line 253 of file transform_component.cpp.

◆ set_transform_local()

void unravel::transform_component::set_transform_local ( const math::transform & trans)
noexcept

Sets the local transform.

Parameters
transThe local transform to set.

Definition at line 220 of file transform_component.cpp.

◆ sort_children()

void unravel::transform_component::sort_children ( )
noexcept

Sorts the child entities.

◆ to_local()

auto unravel::transform_component::to_local ( const math::vec3 & point) const -> math::vec3
noexcept

SPACE UTILS.

Converts a point to local space.

Parameters
pointThe point in global space.
Returns
The point in local space.

Definition at line 737 of file transform_component.cpp.


The documentation for this class was generated from the following files: