| 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.
| point | The origin of the gizmo in world coordinates. |
| direction | The velocity direction which is expected to be normalized. |
| velocityMagnitude | The actual velocity magnitude. |
| predictionMagnitude | The custom magnitude used for the prediction which might be different from the velocityMagnitude . |