rigComponent 0.1.1
RigKit pack API - rigComponent
Loading...
Searching...
No Matches
rigkit::ecs::CTransform Struct Reference

Local TRS+shear (+ euler editor cache) and cached world matrix. More...

#include <rigComponent/src/CTransform.h>

Public Attributes

glm::vec3 shear {0.0f, 0.0f, 0.0f}
 Local shear (xy, xz, yz) - unit upper-triangular factor in T*R*Sh*S.
glm::vec3 euler {0.0f, 0.0f, 0.0f}
 Editor-facing Euler (radians); not portable / not serialized. Keep in sync with rotation.
glm::mat4 world {1.0f}
 Filled by SHierarchy - parent chain * local TRS.

Detailed Description

Local TRS+shear (+ euler editor cache) and cached world matrix.

Speaks rig.spatial.transform (position / rotation / scale / shear). rotation (quat) is authoritative for localMatrix and serialization - avoids gimbal lock. euler is an editor-facing cache (radians); do not serialize it. Use setEulerRadians / setRotationQuat (or the sync helpers) so both stay aligned. SHierarchy fills world each Update from CRelationship::parent (if any).

Member Data Documentation

◆ shear

glm::vec3 rigkit::ecs::CTransform::shear {0.0f, 0.0f, 0.0f}

Local shear (xy, xz, yz) - unit upper-triangular factor in T*R*Sh*S.

0 = none (the common case; only what differs serializes). Any 2D affine lands exactly in one transform this way (shear.x is the 2D skew).


The documentation for this struct was generated from the following file:
  • packs/rigComponent/src/CTransform.h