jPCT-AE - a 3d engine for Android > Bugs
Parent and rotate/translate mesh
Thomas.:
When I call translateMesh() or rotateMesh(), transformations from parent is not taken into account.
EgonOlsen:
No, they aren't. But that's not a bug, it's by design. The docs state "Rotates the raw mesh data using the rotation matrix specified for this object.". I might be possible to work around this by setting the matrix from getWorldTransformation() as a temporarily rotation/translation matrix and execute the methods with those.
Thomas.:
Matrix from getWorldTransformation() includes transformation from parent?
EgonOlsen:
Yes, it does.
Thomas.:
OK, thanks. My question does not relate to the actual problem, but why is not automatically called disable lazy transformations before transformation and enabled after? Is there any situation when do this is disadvantageously?
Navigation
[0] Message Index
[#] Next page
Go to full version