KinematicCharacterBody.SnapDistance Property
Definition¶
Namespace: Brine2D.ECS.Components
Maximum distance in pixels to probe downward for a floor surface when the character leaves the ground. When greater than zero, the character snaps to the floor if a solid surface is found within this distance — useful for keeping the character grounded on stairs and slopes without going airborne. Default is 0 (disabled).
public float SnapDistance { get; set; }