jPCT - a 3d engine for Java > Support
rotateMesh Bug
AGP:
The following code doesn't crash with Object3D.rotateY(...) but crashes with a NullPointerException on Object3D.rotateMesh().
--- Code: --- if (ship instanceof Blah) {
ship.body.rotateY((float)Math.PI*.5f);
ship.body.rotateMesh();
ship.body.clearRotation();
}
--- End code ---
EgonOlsen:
Most likely because you've stripped the object it's being called on.
AGP:
So is there no way for me to rotate and clear the object's matrix at that point?
EgonOlsen:
Just don't call strip() on the object and it should work.
AGP:
But then it's going to cost me performance, right?
Navigation
[0] Message Index
[#] Next page
Go to full version