TransformMixin.getMatrix
Gets the transformation matrix of the node
TransformMixin.getMatrix() method
Gets the transformation matrix of the node
Signature:
getMatrix(frame?: number): Matrix;Parameters
Parameter | Type | Description |
|---|---|---|
frame | number | (Optional) Optional frame number to get the matrix from. Defaults to current frame. |
Returns:
The transformation matrix of the node
Example
// Get the transformation matrix at frame 15
const matrix = node.getMatrix(15);
console.log("Matrix at frame 15:", matrix);Last updated: August 5, 2026 at 11:47 AMEdit this page