Vector3Reflect Method (Vector3, Vector3)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Returns the reflection of a vector off a surface that has the specified normal.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static Vector3 Reflect(
	Vector3 vector,
	Vector3 normal
)

Parameters

vector
Type: RageVector3
The source vector.
normal
Type: RageVector3
Normal of the surface.

Return Value

Type: Vector3
The reflected vector.
Remarks

Reflect only gives the direction of a reflection off a surface, it does not determine whether the original vector was close enough to the surface to hit it.
See Also

Reference