Softbot in WebGL / Three.js?
Is there a way to integrate soft body physics using WebGL or 3js? Can I integrate the PhysX engine in some way?
I need to move a 3D rigid body in a 3D soft body and have a soft body in return. A soft body would ideally have the same plastic properties as clay.
I am trying to achieve what I am trying to achieve?
Any advice or guidance is greatly appreciated.
source to share
There are already some 3D engines like ammo.js , cannon .js , oimo.js or goblin physics . You will find that they all struggle with soft bodies.
The bullet mechanism that ammo.js is based on can execute soft bodies, but it is not (officially) implemented yet. See https://github.com/kripken/ammo.js/issues/83 and https://github.com/kripken/ammo.js/issues/13 .
There is no official example about soft bodies in cannon.js. But there is also a github thread where someone posted this softbody demo http://egraether.com/demos/soft/index.html over 2 years ago.
In others, I have not found anything similar. I did not list Physijs because it is just a wrapper for ammo.js.
source to share
An example made with whitestorm.js . A stable version of this engine is coming soon. Beta (near stable) is available on github right now.
EDIT
Aren't you looking?
source to share