Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Avascar on November 10, 2012, 05:11:22 AM

Title: No Collision (Falling through floors, walking through walls, ect ect)[SOLVED]
Post by: Avascar on November 10, 2012, 05:11:22 AM
Alright so, I'm creating a 2D game and it's a platformer. I scripted the left and right controls using Playmaker, and I'm scripting the falling and jumping FSM but the thing is that, my player goes through things. I tried adding box colliders and character controllers to it, but it doesn't work. The left and right controls go through walls, and whenever I try and jump I fall through the floor. But I jump midair anyway (I can fix that), but the thing is that I can go through EVERYTHING. Idk how to fix it, so help please?
Title: Re: No Collision (Falling through floors, walking through walls, ect ect)
Post by: kiriri on November 10, 2012, 07:13:53 AM
itween move is in essence an interpolated version of translate.
In more general terms, it does nothing more than add or subtract values from the position vector3 of the specific object (transform). Naturally this does not care about collision.

Use the simple move action which translates it as well as applies physics to it
Title: Re: No Collision (Falling through floors, walking through walls, ect ect)
Post by: Avascar on November 12, 2012, 03:53:38 AM
Did the Move action, though the player still goes through the floor. I added the ground a box collider and the player a box collider and character controller (did just the character controller, still goes through walls)
Title: Re: No Collision (Falling through floors, walking through walls, ect ect)
Post by: jeanfabre on November 13, 2012, 01:15:44 AM
Hi,

Is it doing it on sample scenes as well?

is it staying on the floor to begin with? It seems it does so I would assume it's simply a matter of setting your props properly.

bye,

 Jean
Title: Re: No Collision (Falling through floors, walking through walls, ect ect)
Post by: DARK_ETERNAL on November 13, 2012, 03:38:46 PM
Did you check your physics configuration? Layer-based collisions, colliders with and without rigidbodies, triggers and such things?
Title: Re: No Collision (Falling through floors, walking through walls, ect ect)
Post by: Avascar on November 18, 2012, 06:46:14 PM
Solved it, it was the box collider's Z scale, it was 0 o.o

Thanks for the help guys anyway, rly appreciate it