Why set rotation property and set a whole new rotation get different result when translate?


box1 and box2 are two identical boxes. I set box1.rotation.y = Math.PI/4 on box1 and box2.ratation = new BABYLON Vector3(0, Mth.PI/4, 0). But when i tranlate boxes with the same vector, two boxes move to different position.

Because translation is carried out before world matrix has been computed

1 Like