- Home /
Question by
unoo_ · Jun 29, 2018 at 12:16 PM ·
collisions
Working with ECS, how should I treat collisions?
I'm working with ecs. And I want to treat collisions. I found two way.
OnCollisionEnter in component (Not using ECS)
Using GetContacts() to Each rigidbody of components (using ECS)
I'm wondering which one is performant.
Comment
Answer by Dr_SuiuS · Jan 11, 2021 at 08:52 PM
I know that this is necropost, but the modern way of doing this would be through CollisionEvents and TriggerEvents (at least this is my preferred way).
Your answer

Follow this Question
Related Questions
Different particles for different collisions. 1 Answer
Elastic Collisions with Rigidbodies 1 Answer
Check collisions with more than one enemy? 1 Answer
Help with a killbox 1 Answer
Particle collisions for a NOOB?? 1 Answer