Avoid collition with fluids, possible?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
dynamoman
Posts: 12
Joined: Mon Sep 27, 2010 12:35 am

Avoid collition with fluids, possible?

Post 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?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Avoid collition with fluids, possible?

Post 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.
dynamoman
Posts: 12
Joined: Mon Sep 27, 2010 12:35 am

Re: Avoid collition with fluids, possible?

Post by dynamoman »

Thank you very much, it works perfect now :)
Post Reply