Problem with RigidBody, Colliders etc

Hi guys,

Here’s the thing. I’m creating an Asteroids game. I have a 1up gameObject with RigidBody (just like the enemies). The thing is that I dont want the “falling” objects (the 1UP and the enemies) to collide between them, only with the SpaceShip at the bottom. I’m working with normal collision (OnCollisionEnter method - no Trigger) and I dont know what to do.

I try to us the “is Kinematic” option in the RigidBody component, but I dont get it…it makes the RigidBody useless…now NOTHING collides witht hat object…

Can someone help me ??

Why not just use a trigger collider on the 1UP? You should usually only use non-triggers for things that you’d want to be solid–that is, to be rebounded from other objects. Things like lasers, 1 ups, flamethrowers, ect (that either pass through objects or are removed the second they touch an object) work best as triggers. This way you can use OnTriggerEnter(col : Collider) then check with the col.gameObject.tag to see if it’s colliding with the SpaceShip (which you could give the tag “Player” or something)

Another way to do this would be using collision layers. Go Edit->Project Settings->Physics to check out the handy collision matrix.

Mmmm really ? I don’t have much experience with triggers since I’m new to game dev and Unity, guess I’ll check it out…thanks a lot!! :smile: