Expand description
Transform propagation — parent-child coordinate hierarchy.
plCoordinateInterface maintains local-to-parent and local-to-world matrices. When a parent moves, all children recompute their world transforms.
C++ ref: pnSceneObject/plCoordinateInterface.h/.cpp
Functions§
- mat44_
identity - Create an identity 4x4 matrix.
- mat44_
is_ identity - Check if a matrix is identity.
- mat44_
multiply - Multiply two 4x4 matrices stored as [f32; 16] in row-major order. hsMatrix44 is row-major: fMap[row][col], flat index = row*4+col.
- mat44_
transform_ direction - Transform a direction (no translation) by a row-major 4x4 matrix.
- mat44_
transform_ point - Transform a point by a row-major 4x4 matrix.
- mat44_
translation - Extract translation from a row-major 4x4 matrix. Translation is at fMap[0][3]=m[3], fMap[1][3]=m[7], fMap[2][3]=m[11].
- propagate_
transform - Propagate transforms through a parent-child hierarchy.