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![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
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!
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
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
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 :D](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/grin.png)
Comments
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!