Transformation
Transformation (transform for short) - is a special entity that changes coordinate system from one to another. It is used primarily in scene nodes to store their position/rotation/scale/pivots/etc. Fyrox has quite complex transformations, that supports:
- Position (
T) - Rotation (
R) - Scale (
S) - Pre-rotation (
Rpre) - Post-rotation (
Rpost) - Rotation Pivot (
Rp) - Rotation Offset (
Roff) - Scaling Offset (
Soff) - Scaling Pivot (
Sp)
Final transformation matrix will be Transform = T * Roff * Rp * Rpre * R * Rpost * Rp⁻¹ * Soff * Sp * S * Sp⁻¹. In 99.9%
cases first three are enough for pretty much every task. Other six components used for specific stuff (mainly for nodes
that imported from FBX file format).