28-06-2019, 11:04 AM
Hi.
I am experimenting with Obi Fluid in 2D, great fun! Trying to make fluid particles stream down a staircase of several static colliders. When they come down they should be teleported back up again. I have seen demos of using collision callback functions for this. I get callbacks for each frame for each particle colliding with every collider. To check for the proper collider in every callback must be a performance issue?
Can the Obi OnCollision event be active only for certain colliders? For example the ones that are triggers?
What is the best setup in a case like this?
I am experimenting with Obi Fluid in 2D, great fun! Trying to make fluid particles stream down a staircase of several static colliders. When they come down they should be teleported back up again. I have seen demos of using collision callback functions for this. I get callbacks for each frame for each particle colliding with every collider. To check for the proper collider in every callback must be a performance issue?
Can the Obi OnCollision event be active only for certain colliders? For example the ones that are triggers?
What is the best setup in a case like this?