Node transformations
This page details how nodes are placed in the world coordinate system.
Overview
with(myNode) {
spatial {
position = Vector3f(0.0f, 0.0f, 5.0f)
rotation = Quaternionf(0.0f, 0.0f, 0.0f, 1.0f)
scale = Vector3f(2.0f, 1.0f, 1.0f)
}
}Update cycle
v.spatial().scale = Vector3f(3.0f, 10.0f, 1.0f)
System.out.println("v.model: " + v.spatial().model)
// Output (Matrix is not immediately updated and is still unity):
// 1.000E+0 0.000E+0 0.000E+0 0.000E+0
// 0.000E+0 1.000E+0 0.000E+0 0.000E+0
// 0.000E+0 0.000E+0 1.000E+0 0.000E+0
// 0.000E+0 0.000E+0 0.000E+0 1.000E+0Overriding default matrix composition behaviour
Manually updating the model and world matrices
Last updated
Was this helpful?