Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: EpicChowder 619 on February 02, 2015, 09:09:39 AM

Title: Objects not colliding
Post by: EpicChowder 619 on February 02, 2015, 09:09:39 AM
Ive got two levels in a simple, top down, maze/puzzle game and my player cube and enemy cubes are having trouble getting together, literally. In one level the two collide but don't physically touch each other. In another, the enemy does collide with the player but does not restart the level. I've set it up that if it collides with anything tagged 'Player', it restarts the level but every time the two collide, it is still stuck on the previous state.

P.S. states are linked by transitions.
Title: Re: Objects not colliding
Post by: richardh on February 02, 2015, 01:12:02 PM
Have they both got rigid bodies and is one set as a trigger?
Title: Re: Objects not colliding
Post by: KozTheBoss on February 02, 2015, 05:19:22 PM
are you using collide event or trigger event?

If you are using trigger event, then the object that is looking for a "trigger enter" needs a collider, and the object it is looking to collide with needs a rigidbody and also a collider.

Double check your objects layers, tags and names :)
Title: Re: Objects not colliding
Post by: EpicChowder 619 on February 03, 2015, 05:39:11 AM
The first problem is now fixed. The second one, the one where they collide and don't do anything is still not fixed. The enemy now passes through the player whether or not it is set as a trigger. It has a collider and is set to restart the level when colliding with the player, (which is tagged as Player), but it just passes through it.
Title: Re: Objects not colliding
Post by: EpicChowder 619 on February 03, 2015, 05:52:39 AM
Also, i have colored cubes that need to be pushed onto colored pads to make areas of the maze open up. But they are completely static at the moment, unable to be pushed. Any ideas for this?