|
Hi, I am trying to check the collision between two colliders and OnCollisionEnter() doesn't work unless one of the object is RigidBody. I can't use Rigid Body for all the objects as it's a way expensive.... Also tried with trigger and it doesn't work without Rigidbody too.... Anyone helps me..
(comments are locked)
|
|
Correct. As shown in the docs, in order for anything to generate OnCollision events, one of the two objects involved must be a rigidbody. There's no way around that. You don't put a rigidbody on everything, just the objects that move. So.. How about doing something like strategy games? there will be hundreds of moving characters and putting rigidbody on each character will be alot expensive.
Nov 07 '10 at 07:22 AM
Thet Naing Swe
Strategy games are typically done using a grid, so you can check the grid position of each character in an array instead of using physics.
Nov 07 '10 at 01:20 PM
Eric5h5
Thanks.. I will try to calculate using grid...
Nov 08 '10 at 06:16 AM
Thet Naing Swe
(comments are locked)
|
