Can we use two or more physics engine at a time?

Jul 18, 2012 at 2:00 AM

A question pick from the air... just thinking whether is it possible to use two or more physics engine at a time? lets say we want to use Newton for the joint and Matali for the cloth.

Will it conflict or perhaps our program goes haywire...

Coordinator
Jul 20, 2012 at 8:51 AM

It's not supported by default, but theoretically, that's totally possible. You will need to manage the 2nd physics engine by yourself though, and running 2 physics engine at a time will consume a lot resources. By the way, cloth simulation using Matali is quite slow when you have larger number of joints to simulate physically realistic cloth.

Ohan

Jul 20, 2012 at 9:16 AM
ohanoda wrote:

It's not supported by default, but theoretically, that's totally possible. You will need to manage the 2nd physics engine by yourself though, and running 2 physics engine at a time will consume a lot resources. By the way, cloth simulation using Matali is quite slow when you have larger number of joints to simulate physically realistic cloth.

Ohan

thanks ohan...i was thinking of implementing separate physics engine with separate classes. But since it does not give good return i'll stick to one.

Coordinator
Jul 20, 2012 at 7:06 PM

If you really want to do cloth simulation efficiently, you may want to try the commercial version of Havok physics. Their free version don't come with cloth simulation unfortunately.