Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlatformEffector2D.surfaceArc

Switch to Manual
public var surfaceArc: float;

Description

The angle of an arc that defines the surface of the platform centered of the local 'up' of the effector.

Any collision normal with an angle within this arc is never considered for one-way whereas everything outside this arc is considered for one-way.

The default defines an arc that includes collisions from the local horizontal up to the local vertical. If collisions with the local vertical sides are not required then you can reduce the arc by a few degrees.