I have a maplestory game demo
I need character can jump through a collider from one side
the collider in my character and ground are like this:
character:capsulecollider2d
ground:polygoncollider2d
so the character can stand on the ground
also can jump on the ground
but now I want character jump from bottom of the ground,it cannot work
so, How can I deal this problem? Is there a configuration that can make collider only have one side?
-------------------------------------2017 08 11-------------------------------------
thanks a lot every one
thank you @EmreE @Jeroen De Clercq
I resolved this problem by using Platform Effector 2D provided by @EmreE
first: add platform effector 2d on my ground and select "use one way"
second:select "Used by Effector"
now it works :)
More information here ; https://docs.unity3d.com/ScriptReference/Physics.IgnoreLayerCollision.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With