class
MSceneComponent
- Module
- Game
- Header
#include "Game/MSceneComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
Vec3 | localLocation | Local transform Default Vec3(0.0f, 0.0f, 0.0f). |
Quat | localRotation | Default Quat(0.0f, 0.0f, 0.0f, 1.0f). |
Vec3 | localScale | Default Vec3(1.0f, 1.0f, 1.0f). |
Constructors
| Signature | Name | Description |
|---|---|---|
MSceneComponent() = default | MSceneComponent | |
~MSceneComponent() override = default | ~MSceneComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
Vec3 | GetWorldLocation | World transform — computed from chain of parents Caches with a dirty flag bumped when local or any ancestor changes; recompute lazily on next read. |
Quat | GetWorldRotation | |
Vec3 | GetWorldScale | |
void | AttachTo | Attachment tree Attach this component to parent. |
void | AttachToComponent | Attach to a NAMED SOCKET on the parent (a bone on a skeletal mesh: weapon → "hand_r"). |
const std::string& | GetAttachSocketName | |
bool | GetSocketLocalTransform | The named socket's transform in THIS component's local space — identity/false on the base class; MSkeletalMeshComponent answers live bone poses. |
MSceneComponent* | GetAttachParent | |
const std::vector<MSceneComponent*>& | GetAttachChildren |
Function details
MSceneComponent
C++
MSceneComponent() = default~MSceneComponent
C++
~MSceneComponent() override = defaultGetWorldLocation
C++
Vec3 GetWorldLocation() constWorld transform — computed from chain of parents Caches with a dirty flag bumped when local or any ancestor changes; recompute lazily on next read.
GetWorldRotation
C++
Quat GetWorldRotation() constGetWorldScale
C++
Vec3 GetWorldScale() constAttachTo
C++
void AttachTo(MSceneComponent* parent)Attachment tree Attach this component to parent. Detaches from any previous parent first. nullptr parent = detach to root of actor.
AttachToComponent
C++
void AttachToComponent(MSceneComponent* parent, const std::string& socketName)Attach to a NAMED SOCKET on the parent (a bone on a skeletal mesh: weapon → "hand_r"). The socket transform is inserted between the parent's world transform and this component's local transform, so the attachment follows the animated bone every frame. An unknown socket name degrades to a plain attach (identity socket).
GetAttachSocketName
C++
const std::string& GetAttachSocketName() constGetSocketLocalTransform
C++
virtual bool GetSocketLocalTransform(const std::string& socketName, Vec3& outPos, Quat& outRot) constThe named socket's transform in THIS component's local space — identity/false on the base class; MSkeletalMeshComponent answers live bone poses.
GetAttachParent
C++
MSceneComponent* GetAttachParent() constGetAttachChildren
C++
const std::vector<MSceneComponent*>& GetAttachChildren() constGenerated from Game/MSceneComponent.h via game.json · Nov 5, 2026Version 1.0.0