prime31 / CharacterController2D

1.08k stars 248 forks source link

Whole tile OneWayPlatform? #26

Closed aidinzolghadr closed 8 years ago

aidinzolghadr commented 10 years ago

Hi,

Currently in order to have OneWayPlatforms we should have 2D edge collders on an object but I'm making a retro platformer with a tool that lets me "draw" the tiles and it would be great if I could just set layer for the tiles I want to behave like OneWayPlatform and the would act this way.

So is there a way to have OneWayPlatform with normal box 2d colliders rather than 2d edge collider?

Thanks

prime31 commented 10 years ago

There is no way built in. You would need to write your own custom code to deal with the thicker box colliders or modify your painting tool to use edge colliders.

Mike

On Aug 17, 2014, at 5:01 PM, aidinzolghadr notifications@github.com wrote:

Hi,

Currently in order to have OneWayPlatforms we should have 2D edge collders on an object but I'm making a retro platformer with a tool that lets me "draw" the tiles and it would be great if I could just set layer for the tiles I want to behave like OneWayPlatform and the would act this way.

So is there a way to have OneWayPlatform with normal box 2d colliders rather than 2d edge collider?

Thanks

— Reply to this email directly or view it on GitHub.

aidinzolghadr commented 10 years ago

Would you please elaborate more on how can I do this?

Thanks in advance.