Physijs brint a very easy to use user interface into the Three.js framework. It is ideal suitable for the creation of a 3D configurator. One of the reasons that Three.js is so popular is that it’s so incredibly easy for graphics novices to get into 3D programming. Physijs takes this philosophy to heart and makes physics simulations just as easy to implement. In fact, there are only five simple steps that need to be taken to bring a 3D scene to life.
How does Physijs work?
Physijs is based on ammo.js (although there is also a cannon.js branch) and runs the physics simulation in a separate thread to avoid affecting the performance of your application and reduce your 3D rendering time.
Great efforts have been made to keep the code style the same when using Physijs. Apart from updating the position of an object, all normal Three.js conventions remain unchanged. If you are used to Three.js, you already know how to use the Physijs plugin.
Who is it for?
Hopefully for you. If you are familiar with Three.js and want to add physics to your scene, this is the plugin of your choice. No fooling around with shape definitions, holding objects in place, or identifying collisions – just use a few Physijs objects instead of Three.js and you’ll automatically have a dynamic environment.
If you need (or want) a function that isn’t already included, add it to the Issue Tracker or implement it yourself and send a pull request.
Features:
In the future:
Thank you very much for your visit.