playMaker

Author Topic: [SOLVED] Collision detection problems, topdown shooter  (Read 2969 times)

4s4

  • Playmaker Newbie
  • *
  • Posts: 34
[SOLVED] Collision detection problems, topdown shooter
« on: April 13, 2012, 12:47:13 PM »
Hello,

I´m having troubles with collision detection with my shooter.
I created a bullet prefab that has box collider as parent and the bullet object as child. Parent receives global aim angle and has "transform 5 on z axel" assigned for speed..

So far so good.
http://youtu.be/OLAMjk1xYFg

Trouble!
I Assigned Collision event on the bullet prefab, so that when it hits "enemy" tagged collision it vanishes. It works, but as you need to add rigid body to the bullet, things get bit wonky. I think the bullets hit themself and change the trajectory angle.. Is there anyway prevent the collisions between bullets or a way to do hit detection without rigid body?

http://youtu.be/QFyzjTZpq9o  
« Last Edit: April 14, 2012, 05:28:09 PM by Alex Chouls »

4s4

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Collision detection problems, topdown shooter
« Reply #1 on: April 13, 2012, 01:34:52 PM »
doh, found it. Freeze rotation & position on rigid body. fixes the collision problem