Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Detecting if Vector3 is within ObiFluid volume?
#5
(17-10-2018, 08:28 AM)josemendez Wrote: Hi,

Fluid is discretized as particles, so checking if a point is "within the volume" is equivalent to checking if it is close enough to any particle. Using a small spherical trigger would do the trick, just like in the "Uninstantiating particles within the radius of a Vector3 location" case. Just make sure the collider is roughly the same radius as a particle.

That's great, thank you; I'll have to have a think about efficiency and the best way to put the pieces of this together, but that gives me everything I need so far.
Reply


Messages In This Thread
RE: Detecting if Vector3 is within ObiFluid volume? - by Mitch@PG - 19-10-2018, 10:11 AM