Skip to content

Ray Cast Hit Normal

Description

The surface normal at the ray cast hit position (or from end pos to start pos if no hit occurs). Ray casts ignore players with “Phased Out” status.

==For a more in-depth guide on ray casts, check out Ray casts and You==

Snippet

Ray Cast Hit Normal(Vector(0, 0, 0), Vector(0, 0, 0), All Players(All Teams), Event Player, True);

Properties

Returns: Direction Parameters: ==Start Pos==, ==End Pos==, ==Players To Include==, ==Players To Exclude==, ==Include Player Owned Objects==

==Start Pos== Type: Position, Default: Vector The start position for the ray cast. If a player is provided, a position 2 meters above the player’s feet is used.

==End Pos== Type: Position, Default: Vector The end position for the ray cast. If a player is provided, a position 2 meters above the player’s feet is used.

==Players To Include== Type: Array (Player), Default: All Players Which players can be hit by this ray cast.

==Players To Exclude== Type: Array (Player), Default: Event Player Which players cannot be hit by this ray cast. This list takes precedence over players to include.

==Include Player Owned Objects== Type: Boolean, Default: True Whether player-owned objects (such as barriers or turrets) should be included in the ray cast.

Type to search…

↑↓ navigate↵ selectEsc close