Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  No Collision Contact
#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


Messages In This Thread
No Collision Contact - by 0xhex - 01-03-2022, 09:46 AM
RE: No Collision Contact - by josemendez - 01-03-2022, 09:56 AM
RE: No Collision Contact - by 0xhex - 02-03-2022, 09:47 AM