Scripting API
Scripting API
PlatformEffector2D
Struct in Abyss.Physics2D, from Abyss.Physics2D.
A one-way platform: the colliders on its entity met only from along its up — what lands on it from above rests on it, and what comes up from below or in from the side passes through — by bodies and characters alike.
public struct PlatformEffector2DRemarks
Its up is its entity's, as its GlobalTransform turns it, turned PlatformEffector2D.RotationalOffset degrees more; PlatformEffector2D.SurfaceArc is how wide the way it is met from is, about its up: 180, the whole top side, a side square to the up passing as the bottom does.
What is deep inside it passes on whichever way it goes, so a body jumping up through it is not caught halfway and lands on it once it is above. To drop down through one, a game has a body and the platform not meet for a while: Physics2D.IgnoreCollision.
Fields
UseOneWay
public bool UseOneWayWhether it is met from along its up alone.
SurfaceArc
public float SurfaceArcHow wide the way it is met from is, in degrees about its up.
RotationalOffset
public float RotationalOffsetHow far its up is turned from its entity's, in degrees anticlockwise.
