Getting Sticked on the borders of my platforms

Hi again people!

Im having a tiny problem with... my game physics? i think so but im not sure...

The problem is, over a normal platform2D, that my actor get sticked on the borders of the platform...i think maybe changing friction/density of some of my actor could be enough but i want your experienced opinion too :)


Scene Gravity.Y: 120


Main Actor:

Density: 0
Friction: 50
Bounciness: 0


Platform:

Density: 1
Friction: 5
Bounciness: 0


any idea? maybe do i need a special rule to avoid this situation?


Thanks in advance! :D

Comments

  • ironDanironDan Member Posts: 148
    In the physics dropdown of actor change collision shape from square to circle. That will fix your problem
  • DuendeArkanoDuendeArkano Member Posts: 52
    I tought the same, and at this moment its circular the colision shape of the main actor, i will try to do the same with the platform, and lets see
  • DuendeArkanoDuendeArkano Member Posts: 52
    Solved!!!

    i have to say that i have an attribute called (grounded?) who determine if my main actor is grounded or not.

    then, i create a new actor who have to be placed on the borders or sides where you don't want to be sticked. let's call it "slipperyborders"

    So, on the main actor:


    Rule

    When actor overlaps or collides with "slipperyborders"

    Constrain attribute: self.grounded? false


    OTHERWISE:

    Constrain attribute: self.grounded? true



    and it works! :D


Sign In or Register to comment.