class

MSceneComponent

Module
Game
Header
#include "Game/MSceneComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
Vec3localLocationLocal transform Default Vec3(0.0f, 0.0f, 0.0f).
QuatlocalRotationDefault Quat(0.0f, 0.0f, 0.0f, 1.0f).
Vec3localScaleDefault Vec3(1.0f, 1.0f, 1.0f).

Constructors

SignatureNameDescription
MSceneComponent() = defaultMSceneComponent
~MSceneComponent() override = default~MSceneComponent

Public functions

ReturnsNameDescription
Vec3GetWorldLocationWorld transform — computed from chain of parents Caches with a dirty flag bumped when local or any ancestor changes; recompute lazily on next read.
QuatGetWorldRotation
Vec3GetWorldScale
voidAttachToAttachment tree Attach this component to parent.
voidAttachToComponentAttach to a NAMED SOCKET on the parent (a bone on a skeletal mesh: weapon → "hand_r").
const std::string&GetAttachSocketName
boolGetSocketLocalTransformThe 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 = default

GetWorldLocation

C++
Vec3 GetWorldLocation() const

World 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() const

GetWorldScale

C++
Vec3 GetWorldScale() const

AttachTo

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() const

GetSocketLocalTransform

C++
virtual bool GetSocketLocalTransform(const std::string& socketName, Vec3& outPos, Quat& outRot) const

The 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() const

GetAttachChildren

C++
const std::vector<MSceneComponent*>& GetAttachChildren() const
Generated from Game/MSceneComponent.h via game.json · Nov 5, 2026Version 1.0.0