Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 4s4 on April 13, 2012, 12:47:13 PM

Title: [SOLVED] Collision detection problems, topdown shooter
Post by: 4s4 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 (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 (http://youtu.be/QFyzjTZpq9o)  
Title: Re: Collision detection problems, topdown shooter
Post by: 4s4 on April 13, 2012, 01:34:52 PM
doh, found it. Freeze rotation & position on rigid body. fixes the collision problem