Collision, can't get it to work

Hello,

I’m currently working on a small project for testing developpment on the Iphone, I’v got some simple folow script for enemy’s working and the movement and shooting. But no mather what I do, I just can’t make my bullets detect an collision… I hope you guys can help me out.

I’ll just post my project :wink:

Grtz
Crash

449663–15679–$Retard_ColorEpicness 2.zip (1.09 MB)

have you tried adding a collision volume? you will find them under Component\Physics\ Box Collider, Sphere Collider, etc. Add one of these shapes that best match your character and make sure that the bottom aligns with the surface of the ground.

Well it’s not for the character, the bullets have to hit the enemy’s (witch are squares for now but will bet spheres later). And yes I do have colliders on them… That’s why I’m getting so frustrated… I’ve even tried it with maken one of them triggers

The bullets, or the enemy will need a rigid body i believe.

I’t wont just work with colliders? Doesn’t a lot of rigid body slow the game down much?

Hmmm I indeed got it working with rigidbody’s on the bullets… Just hope it’s not to havy :slight_smile:

Thx for the help!

Without rigidbodies, colliders can’t move.

Its rather trivial, but the rigidbody is what makes the objects physical and physically moving and without moving physically it can naturally not interact physically ie collide

Hmm so its not possible to just have colliders?
The problem I’m having right now is that when I add an rigidbody to an object that moves, that it’s acting a way I don’t want it to act (for example my player moves when I shoot, I don’t want that). But when I make it Kinematic it can’t seem to detect any collision anymore…

Anyhow I now have the bullets with an rigidbody, detecting it when they hit an enemy (only an collider). And now I also need the player to detect if its hitting an enemy… Where do I need to place the rigidbody?

Greatings,
Peter