Page 1 of 1

Avoid collition with fluids, possible?

Posted: Wed Jun 27, 2012 10:04 pm
by dynamoman
Hello, I've been trying to create a fluid for having a raft moving on it, but I want a special object to not interact with fluids, I tried setting the personal collision rule to NoBroadPhase, but is still colliding with the fluid:

Code: Select all

_body.CollisionInformation.CollisionRules.Personal = CollisionRule.NoBroadPhase;
While browsing the forums I found that is not possible to check the internal list of objects on the fluid, but is it possible to have an object not to interact with it?, my idea is to set the collitions I want on a specific level, but if I can't even ignore collitions with fluids then there is no point.

So my question is: am I doing something wrong?, or is just impossible right now to do that with fluids?

Re: Avoid collition with fluids, possible?

Posted: Wed Jun 27, 2012 10:52 pm
by Norbo
The FluidVolume is pretty easy to modify to support the things mentioned. For example, I uploaded a new development version that gives the FluidVolume a CollisionRules instance.

It would be similarly easy to make it keep a list of objects if you would like to make that modification. If the FluidVolume gets rewritten into a more collision pipeline-consistent form like the DetectorVolume was, these features would be automatically supported.

Re: Avoid collition with fluids, possible?

Posted: Thu Jul 12, 2012 7:16 pm
by dynamoman
Thank you very much, it works perfect now :)