Workshop.codes
Create

Surface Normal At Position Last updated April 03, 2026

Description

Returns the surface normal vector of the geometry directly below a given world position, determined by a downward raycast. Useful for aligning effects to slopes, determining if a surface is walkable, or calculating ricochet directions.

Snippet

Surface Normal At Position(Position Of(Event Player));

Properties

Returns: Vector
Parameters: Position

Position
Type: Vector, Default: Vector(0, 0, 0)
The world position from which the downward raycast is performed. Returns Null if no geometry is found below.

Workshop.codes