Vector3Reflect Method (Vector3, 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 void Reflect(
	ref Vector3 vector,
	ref Vector3 normal,
	out Vector3 result
)

Parameters

vector
Type: RageVector3
The source vector.
normal
Type: RageVector3
Normal of the surface.
result
Type: RageVector3
When the method completes, contains 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