|
void | Cleanup () |
|
TrajectoryData | GetData () |
|
void | Init (float worldTime) |
|
void | AddPoint (Vector3 point, float pointTime, float currentTime) |
| Adds a point to the trail. Points are added if they are minVertexDistance from the last point.
|
|
void | MoveAll (Vector3d moveBy3d) |
| Move a trajectory, it's data and time/text markers.
|
|
void | AddData (Vector3 r, Vector3 v, float t) |
| Add data point to the detailed record of the trajectory. These are later used to determine trajectory intercepts.
|
|
|
float | minVertexDistance = 0.1f |
| Distance interval for points to be added to the renderer.
|
|
GameObject | timeMarkerPrefab |
| Object to be created every timeMarkInterval.
|
|
float | timeMarkInterval = 2.0f |
| Interval between time markers.
|
|
GameObject | textPrefab |
| Prefab to be added for text labels showing time along trajectory.
|
|
bool | rotateText |
| Rotate text to align with trajectory.
|
|
int | maxPoints = 1000 |
| maximum number of points in the line renderer
|
|
bool | recordData |
|
◆ AddData()
void Trajectory.AddData |
( |
Vector3 |
r, |
|
|
Vector3 |
v, |
|
|
float |
t |
|
) |
| |
Add data point to the detailed record of the trajectory. These are later used to determine trajectory intercepts.
- Parameters
-
◆ AddPoint()
void Trajectory.AddPoint |
( |
Vector3 |
point, |
|
|
float |
pointTime, |
|
|
float |
currentTime |
|
) |
| |
Adds a point to the trail. Points are added if they are minVertexDistance from the last point.
- Parameters
-
◆ MoveAll()
void Trajectory.MoveAll |
( |
Vector3d |
moveBy3d | ) |
|
Move a trajectory, it's data and time/text markers.
Used by GravityEngine.MoveAll()
Do not call from game code.
- Parameters
-
The documentation for this class was generated from the following file:
- C:/Users/musgr/Documents/Unity/gravityengine/Assets/GravityEngine/Scripts/Engine/Trajectory.cs