June 2013
Beginner
352 pages
9h 5m
English
A physics simulation can be quite a loose cannon. Don't be surprised when physical objects jitter or are unceremoniously hurled out of the scene. Congratulations, you have created a physically impossible state! Most likely, you positioned two solid objects too close to each other. How do you find the source of the problem?
HullCollisionShapes by default, which are not mesh-accurate. Make certain that no collision shapes overlap. You can render the (otherwise invisible) collision shapes as wireframes with the following command:bulletAppState.getPhysicsSpace().enableDebug(assetManager); // on bulletAppState.getPhysicsSpace().disableDebug() ...
Read now
Unlock full access