01-03-2022, 09:56 AM
(This post was last modified: 01-03-2022, 09:58 AM by josemendez.)
(01-03-2022, 09:46 AM)0xhex Wrote: Hello, I have just implemented obi default fluid system but it looks like no collision.
The hit object has obi collider script and I use default collision event handler script
but in the console output there is nothing!
Here the screenshot ;
https://www.dropbox.com/s/9e0x9jmv891971...0.png?dl=0
You've subscribed to solver.OnParticleCollision. This returns a list of contacts between particles (simplex vs simplex), not contacts between particles and colliders (simplex vs collider).
You want to subscribe to solver.OnCollision instead. Check the manual for details:
http://obi.virtualmethodstudio.com/manua...sions.html
Quote:Contacts can happen between a simplex and a collider, or between two simplices. To request the simplex-collider contact list from the solver, subscribe to its OnCollision event. To retrieve the simplex-simplex contact list, subscribe to its OnParticleCollision event.