Component configuration for the transform component. More...
#include <TransformBus.h>
Inherits AZ::ComponentConfig.
Public Types | |
enum class | ParentActivationTransformMode : u32 { MaintainOriginalRelativeTransform , MaintainCurrentWorldTransform } |
Public Member Functions | |
AZ_RTTI (TransformConfig, "{B3AAB26D-D075-4E2B-9653-9527EE363DF8}", ComponentConfig) | |
AZ_CLASS_ALLOCATOR (TransformConfig, SystemAllocator) | |
TransformConfig ()=default | |
TransformConfig (const Transform &transform) | |
![]() | |
AZ_CLASS_ALLOCATOR (ComponentConfig, SystemAllocator) | |
AZ_RTTI (ComponentConfig, "{0A7929DF-2932-40EA-B2B3-79BC1C3490D0}") | |
Public Attributes | |
Transform | m_worldTransform = Transform::Identity() |
Transform | m_localTransform = Transform::Identity() |
EntityId | m_parentId |
ParentActivationTransformMode | m_parentActivationTransformMode = ParentActivationTransformMode::MaintainOriginalRelativeTransform |
bool | m_netSyncEnabled = true |
InterpolationMode | m_interpolatePosition = InterpolationMode::NoInterpolation |
InterpolationMode | m_interpolateRotation = InterpolationMode::NoInterpolation |
bool | m_isStatic = false |
Component configuration for the transform component.
Behavior when a parent entity activates. A parent may activate before or after its children have activated.
|
default |
Constructor with all default values. Transform is positioned at (0,0,0) with no rotation and scale of 1.
Constructor which sets a 3D transform. Sets both the local and world transform to the same value.
transform | The entity's position, rotation, and scale in 3D. |
InterpolationMode AZ::TransformConfig::m_interpolatePosition = InterpolationMode::NoInterpolation |
InterpolationMode AZ::TransformConfig::m_interpolateRotation = InterpolationMode::NoInterpolation |
Whether the transform is static. A static transform will never move.
Transform AZ::TransformConfig::m_localTransform = Transform::Identity() |
Local 3D transform, as an offset from the parent entity. This property is used to offset the entity from its parent's world transform. Local transform is ignored if no parent is assigned.
ParentActivationTransformMode AZ::TransformConfig::m_parentActivationTransformMode = ParentActivationTransformMode::MaintainOriginalRelativeTransform |
Behavior when the parent entity activates. A parent entity is not guaranteed to activate before its children. If a parent entity activates after its child, this property determines whether the entity maintains its current world transform or snaps to maintain the local transform as an offset from the parent.
EntityId AZ::TransformConfig::m_parentId |
ID of parent entity. When the parent entity moves, this transform will follow.
Transform AZ::TransformConfig::m_worldTransform = Transform::Identity() |
World 3D transform. This property is used if no parent is assigned, or if the assigned parent entity cannot be found. This property is ignored if the assigned parent is present.