Documentation

Unity Engine

Download Unity

Unity Engine

Projection(float3)

Projects the given point onto the plane.
Read time 1 minuteLast updated 7 hours ago

Definition

public readonly float3 Projection(float3 point)

Parameters

point

Point to project onto the plane.

Returns

Type

Description

float3Projected point that's inside the plane.

Remarks

Plane must be normalized prior to calling this function. The result is the position closest to the point that still lies in the plane.