Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  No Collision Contact
#1
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
Reply
#2
(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.
Reply
#3
(01-03-2022, 09:56 AM)josemendez Wrote: 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

Thank you!
Reply