Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
ManeuverRenderer Class Reference

Show the maneuvers as 3D on screen vectors. More...

Inheritance diagram for ManeuverRenderer:

Public Member Functions

void ShowManeuvers (List< Maneuver > maneuvers)
 Show each maneuver in the list using an in-scene vector made from the maneuverArrowPreb. Optionally update on-screen text.
 
void Clear ()
 

Public Attributes

GameObject maneuverArrowPrefab
 Prefab of a gameobject with a LineRender and Cone model as children.
 
float lineLengthScale = 1f
 Visual scale of velocity in the scene.
 
float lineWidthScale = 1f
 
float coneScale = 1f
 

Detailed Description

Show the maneuvers as 3D on screen vectors.

This script requires a prefab with a line renderer and a MeshRenderer (Cone for arrow end)

Member Function Documentation

◆ ShowManeuvers()

void ManeuverRenderer.ShowManeuvers ( List< Maneuver maneuvers)

Show each maneuver in the list using an in-scene vector made from the maneuverArrowPreb. Optionally update on-screen text.

Position is determined from the maneuver Nbody (if present) or taken from the maneuver physical location, scaled and mapped to the scene.

Parameters
maneuvers

The documentation for this class was generated from the following file: