How to make platform that allows to moving up but deprecate to movig down?
youtube.com/watch?v=-80t-OV1gQ8
docs.unity3d.com/Manual/class-Pl … tor2D.html
It is possible for Bullet and Box2D? Or it’s needed to implement this logic manually?
How to make platform that allows to moving up but deprecate to movig down?
youtube.com/watch?v=-80t-OV1gQ8
docs.unity3d.com/Manual/class-Pl … tor2D.html
It is possible for Bullet and Box2D? Or it’s needed to implement this logic manually?
Maybe you could filter collision according to collision normal.
You can create two collision shapes, one on top and other down of the player. When if the platform collision touch the collision shape on top, you disable the collision shape of platform.
Other way is disable all collisions shapes of platforms that are above.
Also you can traslate the player up when is in collision.
Something like changing collision masks based on player/character/object movement might work. Combined with a separate feet collider that’s basically a horizontal line to make intersection avoidable when changing the mask.