Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <navigation.h>
Public Member Functions | |
void | SetAfterburn (bool tf) |
MoveToParent (bool aft, unsigned char switchbacks, bool terminating=true) | |
bool | Execute (Unit *parent, const QVector &targetlocation) |
The moveto order attempts to calculate the best way to apply thrust (within the computer bound limits) to get a starship to place B and stopped. It uses an integral of acceleration and velocity over time to solve for time when to decelerate. Is inaccurate within 1 physics frame, and must use switchbacks and then once they have been met sets terminating X,Y, and Z to figure out how many switchbacks it has made , missing the target and coming back over it.
Definition at line 22 of file navigation.h.
|
inline |
Definition at line 38 of file navigation.h.
Definition at line 128 of file navigation.cpp.
References Unit::Limits::afterburn, Unit::ApplyLocalForce(), CalculateBalancedDecelTime(), CalculateDecelTime(), done, float, Unit::Limits::forward, Unit::GetComputerData(), Unit::GetMass(), Unit::GetVelocity(), Unit::Limits::lateral, Unit::Limits(), Unit::Computer::max_ab_speed(), Unit::Computer::max_speed(), Unit::Position(), Unit::Limits::retro, SIMULATION_ATOM, Orders::THRESHOLD, Unit::ToLocalCoordinates(), Unit::UpCoordinateLevel(), Vector, and Unit::Limits::vertical.
Referenced by Orders::MoveTo::Execute().
|
inline |
Definition at line 34 of file navigation.h.
Referenced by Orders::MoveTo::SetAfterburn().