2d character stuck after removal sideanglevariance to surfaceark

Hey all,

We’re running into a massive problem with our 2d platformer game, we used to use the
platfomeffector2d.sideanglevariance to calculate and take care of corners on our boxed 2d platforms. players would run into it.

But because of other issues fixed into 5.1.2. We need to work from this version (mostly crossplatform fixes).
Now that platfomeffector2d.sideanglevariance has been replaced with platformeffector2d.surfaceark. We’re running into the fact that it seems that the Surfaceark funtion isn’t working for 2dbox colliders at all, running it on 180, 1 or 0, all give the same result. Our character (using a circle collider) will get stuck of the edge vertex, and the degree of impact from the circle collider doesn’t matter that much with it.

I’ve even run a new project with basic 2d box colliders using the surfaceark 2d effector with the basic robot unity character prefab, and he just gets stuck.

What can we do about this? We’re very alarmed about this change because we’d need to change every single hitbox to a polygon collider and manually fix every level otherwise.

Thank you for reading.

Yes, I’ve seen this issue mentioned recently however it would be nice to have a bug report with simple repro. If you could do that and post me the case number, you’ll be able to track it.

Sorry for the problem.

Hello MelvMay,

I’ve read your work in topics about the subject, we’ve tried everything we could’ve found on the subject, but to no avail. Thanks for contacting us on it through here. We’ve posted a bug report on it as well. Included our project in it with our work on Sideanglevariance commented and a try-out of the surfaceArk (since then we’ve done a lot of trying).

The bug report case:
(Case 719113) Platformeffector2D.sideAngleVariance removed

Thank you again for helping us.

Greetings,

Hans & Sven
Sneaky Mammoth

Thanks, I’ve received the case. I’ll let you know when something has been resolved.

I have fixed this issue. There is now a ‘Side Arc’ property that functions the same as the ‘sideAngleVariance’ property. After review, it will be pushed to the next available patch release.

Note that I have also improved the gizmo for this effector.

2287693--153741--upload_2015-9-9_15-33-41.png

2287693--153742--upload_2015-9-9_15-33-57.png

2287693--153739--upload_2015-9-9_15-33-14.png

Looks great MelvMay, We’re very excited about this, it’ll make our pixelperfect platforming that much better with the easy interface with once direction platforms.

We’re heavily awaiting the next patch update then. We’ll respond after trying it out!

It went into 5.3.0b1 and is going into the next 5.2 patch shortly.

This change has just gone into the 5.2.1 patch 3 release which I believe will be released next week.