Polarith AI
1.8

◆ Draw()

void Draw ( Vector3  center,
Vector3  direction1,
Vector3  direction2 
)

Draws a plane at the given center position.

The plane is defined by the two directions, direction1 and direction2 . Both directions should not be Vector3.zero nor parallel to each other.

Needs to be called in Unity's OnDrawGizmos method.

Parameters
centerThe center position for the plane to be drawn.
direction1The first direction vector defining the plane.
direction2The second direction vector defining the plane.
Imprint