playMaker

Author Topic: No Collision (Falling through floors, walking through walls, ect ect)[SOLVED]  (Read 3603 times)

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
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?
« Last Edit: November 19, 2012, 12:22:30 AM by jeanfabre »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: No Collision (Falling through floors, walking through walls, ect ect)
« Reply #1 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
Best,
Sven

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
Re: No Collision (Falling through floors, walking through walls, ect ect)
« Reply #2 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)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: No Collision (Falling through floors, walking through walls, ect ect)
« Reply #3 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

DARK_ETERNAL

  • Full Member
  • ***
  • Posts: 110
Re: No Collision (Falling through floors, walking through walls, ect ect)
« Reply #4 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?
Check out our new game: Nitro Chimp. Now live in App Store!

Trailer:
Download: https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
Re: No Collision (Falling through floors, walking through walls, ect ect)
« Reply #5 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