GlbData.ApplyBasisTransform

GlbData.ApplyBasisTransform method

Applies a world transform to all the scenes of the model.

public void ApplyBasisTransform(Matrix4x4 basisTransform, string basisNodeName = "BasisTransform")
ParameterTypeDescription
basisTransformMatrix4x4The transform to apply.
basisNodeNameStringThe name of the new root node, if it needs to be created.

Remarks

This method is appropiate to apply a general axis or scale change to the whole model. Animations are preserved by encapsulating animated nodes inside a master basis transform node. Meanwhile, unanimated nodes are transformed directly. If the determinant of basisTransform is negative, the face culling should be flipped when rendering.

See Also