Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Physics api changes and Oimo fixes #761
Two new functions were added to the physics engine (for low-level manipulations):
Oimo now uses Quaternion rotation only, and initialized rotations correctly. It is also partly restructured.
Small bug fix for Cannon.js plugin that will appear if the mesh's center of mass is not in the middle.
Scene's enable physics function - gravity is optional. It will be set to the default if the function will be executed with no parameters at all.
All tested with the Gravity scene from the samples.
The Scene's "enablePhysics" does not require the gravity, there is a default value at the setGravity function of the physics engine.
Oimo plugin was restructured to use quaternion (no euler rotations of the mesh will be used). getWorldObject was added for low-level world manipulations (if needed by the developer).
Oimo has a bug in its body class (which I doubt will ever be fixed). Rotation cannot be used correctly while creating a compound object. Setting the rotation afterwards works correctly.