PlatformStand
class in Eddie
Description
Extends MobilitySurface and is actualy a mobility surface for platforms.
Constructors
PlatformStand(StepPoint stepPoint, Vector2 offset, Vector2 size) : base(stepPoint)
| Parameter | Description |
|---|---|
| stepPoint | The parent StepPoint. |
| offset | The offset of the surface (usually (x:0, y: [Half the height of the platform])). |
Methods
| Method | Description |
|---|---|
| getStandPlatformEdge | Returns the max x position where the player can be fully standing. |
| getPlatformEdges | Returns the x position values of both edges. |
| getPlatformDirection | Returns the direction of the platform according to a position. |
| GetCollider | Returns the standing surface collider. |