60 glm::vec3 m_RelativeLocation;
63 glm::vec3 m_RelativeRotation;
69 glm::vec3 m_RelativeScale3D;
72 std::shared_ptr<USceneComponent> m_AttachParent;
78 uint8_t m_bAbsoluteLocation : 1;
81 uint8_t m_bAbsoluteRotation : 1;
84 uint8_t m_bAbsoluteScale : 1;
115 return m_RelativeRotation;
130 return m_RelativeLocation;
145 return m_RelativeScale3D;
164 void SetWorldLocation(glm::vec3 newLocation);
180 void SetWorldTransform(
const FTransform& NewTransform);
187 std::shared_ptr<USceneComponent> GetAttachParent()
const;
206 return m_ComponentToWorld;
214 virtual void BeginDestroy()
override;
226 return m_bAbsoluteLocation;
239 return m_bAbsoluteRotation;
252 return m_bAbsoluteScale;
269 void SetRelativeTransform(
const FTransform& NewTransform);
This file contains the class UActorComponent.
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
#define FORCEINLINE
Typical inlining macro for clarity.
Definition Core.h:157
#define DECLARE_KARMA_CLASS(TClass, TSuperClass)
Karma's gamecode object class declaration.
Definition GFrameworkMacros.h:44
ERelativeTransformSpace
The space for the transform.
Definition SceneComponent.h:26
@ RTS_World
Definition SceneComponent.h:28
@ RTS_Component
Definition SceneComponent.h:32
@ RTS_Actor
Definition SceneComponent.h:30
@ RTS_ParentBoneSpace
Definition SceneComponent.h:34
UActorComponent()
A constructor.
Definition ActorComponent.cpp:8
A SceneComponent has a transform and supports attachment, but has no rendering or collision capabilit...
Definition SceneComponent.h:44
bool IsUsingAbsoluteScale() const
Gets the literal value of bAbsoluteScale.
Definition SceneComponent.h:250
bool IsUsingAbsoluteLocation() const
Gets the literal value of bAbsoluteLocation.
Definition SceneComponent.h:224
const glm::vec3 & GetRelativeRotation() const
Gets the literal value of RelativeRotation.
Definition SceneComponent.h:113
glm::vec3 m_ComponentVelocity
Definition SceneComponent.h:91
const glm::vec3 & GetRelativeLocation() const
Gets the literal value of RelativeLocation.
Definition SceneComponent.h:128
FORCEINLINE const std::string & GetAttachSocketName() const
Getter for the m_AttachSocektName.
Definition SceneComponent.h:276
const glm::vec3 & GetRelativeScale3D() const
Gets the literal value of RelativeScale3D.
Definition SceneComponent.h:143
bool IsUsingAbsoluteRotation() const
Gets the literal value of bAbsoluteRotation.
Definition SceneComponent.h:237
const FTransform & GetComponentTransform() const
Get the current component-to-world transform for this component.
Definition SceneComponent.h:204
USceneComponent()
A constructor.
Definition SceneComponent.cpp:8
std::vector< std::shared_ptr< USceneComponent > > m_AttachChildren
Definition SceneComponent.h:101
std::string m_AttachSocketName
Definition SceneComponent.h:98