Scene Graph Transforms Explained
The Transform of a Scene Graph entity defines an entity's translation (location), rotation (orientation), and scale (size). To transform a Scene Graph entity, the entity must have a transform_component. The transform_componentcontains two fields you can manipulate through either UEFN or Verse code:
- Origin: An optional origin from which the LocalTransform is calculated.
- LocalTransform: A
(/Verse.org/SpatialMath:)transformrelative to the entity's parent, or to Origin if the optional Origin field is set.
The origin of an entity is the entity from which the LocalTransform of an entity's transform_component is calculated. This the value of the Origin field if the Origin field on the transform_componentis set, or the entity's parent in the Scene Graph hierarchy if the Origin field is not set.
It is important to distinguish between a transform and the transform_component. A transform is a composite data type defined in the /Verse.org/SpatialMath module that stores the following quantities in the Left-Up-Forward (LUF) coordinate system:
- Translation (
vector3): The location of an object. - Rotation (
rotation): The object's orientation. - Scale (
vector3): The object's size.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.