PlatformStand.getStandPlatformEdge

public float getStandPlatformEdge(float characterWidth, bool rightSide, float offset = 0.1f)
Parameter Description
characterWidth The actual width of the NPC.
rightSide If true, returns the right edge else the left one.
offset Adds an offset to the edge position. Default value is 0.1 (To prevent the NPC from getting too close to the edge).

Description

Returns the absolute x position for where a NPC would be standing on the edge of the platform.

It is basicly the position of the platform's edge minus half of the NPC's width.