Gravity Engine 12.0
Unity Asset for Gravity
|
Trajectory intercepts. Given two trajectories that have recorded data, determine the points at which they cross in space. There are two types: intercept - the paths cross at the same time, the spaceship intercepts the target and depending on deltaV may rendezvoud match - the paths cross but at different times. The spaceship can choose to match the path of the target (with appropriate deltaV) but the target is not at the match point. More...
Public Member Functions | |
void | ComputeAndMarkIntercepts (float deltaDistance, float deltaTime, float rendezvousDT) |
Computes intercepts and marks them intercepts. | |
List< TrajectoryData.Intercept > | GetIntercepts () |
void | ClearMarkers () |
Public Attributes | |
Trajectory | spaceship |
Trajectory | target |
GameObject | interceptSymbol |
Object to place at a trajectory intercept location. | |
GameObject | rendezvousSymbol |
Object to place at a trajectory rendezvous location. | |
Trajectory intercepts. Given two trajectories that have recorded data, determine the points at which they cross in space. There are two types: intercept - the paths cross at the same time, the spaceship intercepts the target and depending on deltaV may rendezvoud match - the paths cross but at different times. The spaceship can choose to match the path of the target (with appropriate deltaV) but the target is not at the match point.
void TrajectoryIntercepts.ComputeAndMarkIntercepts | ( | float | deltaDistance, |
float | deltaTime, | ||
float | rendezvousDT | ||
) |
Computes intercepts and marks them intercepts.
deltaDistance | Distance that separates sets of intercept points. |
deltaTime | Time that separates sets of intercept points. |
rendezvousDT | If less than this dT, regard as rendezvous, otherwise a traj. match |