Polarith AI
1.8

◆ Draw()

void Draw ( Vector3  point,
Vector3  direction,
float  velocityMagnitude,
float  predictionMagnitude 
)

If Enabled is true, this method displays the velocity gizmo using the given Color, DirectionScale and PointSize.

A line segment is drawn to show the velocity direction, whereby the length of this line segment indicates the velocity magnitude. Additionally, a sphere is drawn that displays a possible future position based on the given velocity.

Parameters
pointThe origin of the gizmo in world coordinates.
directionThe velocity direction which is expected to be normalized.
velocityMagnitudeThe actual velocity magnitude.
predictionMagnitudeThe custom magnitude used for the prediction which might be different from the velocityMagnitude .
Imprint