最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Softbody in WebGLThree.js? - Stack Overflow

programmeradmin2浏览0评论

Is there any way to integrate softbody physics with WebGL or threejs? Could I integrate for example PhysX engine somehow?

I need to move a 3d rigid body within a 3d soft body and have the soft body deform in response. The soft body would ideally have similar plastic properties as clay.

Is what I'm trying to achieve even possible?

Any advice or direction would be greatly appreciated.

Is there any way to integrate softbody physics with WebGL or threejs? Could I integrate for example PhysX engine somehow?

I need to move a 3d rigid body within a 3d soft body and have the soft body deform in response. The soft body would ideally have similar plastic properties as clay.

Is what I'm trying to achieve even possible?

Any advice or direction would be greatly appreciated.

Share Improve this question asked Jul 22, 2015 at 23:58 AndrewAndrew 4611 gold badge6 silver badges13 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 7

There are already some 3D physic engines like ammo.js, cannon.js, oimo.js or goblin physics. You will find that all of those are struggling with soft bodies.

The bullet engine of which is ammo.js based can do soft bodies, but (officially) it has not been implemented yet. See https://github./kripken/ammo.js/issues/83 and https://github./kripken/ammo.js/issues/13.

In cannon.js there is no official example about soft bodies. But there is also a github topic in which someone posted this softbody demo http://egraether./demos/soft/index.html over 2 years ago.

In the other ones I havent found something similar. I didnt list Physijs because it is just a wrapper for ammo.js.

Example made using whitestorm.js . Stable version of this engine will e soon. Beta (near stable) is available at github right now.

EDIT

Not this you are looking for?

Maybe take a look at this one: http://chandlerprall.github.io/Physijs/

发布评论

评论列表(0)

  1. 暂无评论