Method Reflect
Reflect(Vector3, Vector3)
Returns the reflection of a vector off a surface that has the specified normal.
Declaration
public static Vector3 Reflect(Vector3 vector, Vector3 normal)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | vector | The vector to project onto the plane. |
| Vector3 | normal | Normal of the surface. |
Returns
| Type | Description |
|---|---|
| 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.