Exemple #1
0
bool DBobView::UpdatePath(){
	vec3_t start, apex;

	if ( GetEntityCentre( entTrigger, start ) ) {
		if ( GetEntityCentre( entTarget, apex ) ) {
			CalculateTrajectory( start, apex, fMultiplier, nPathCount, fVarGravity );
			return true;
		}
	}
	return false;
}
Exemple #2
0
void MGADSMTrajectory::Evaluate(const std::vector<double>& states, std::vector<double>& deltaVs)
{
   OTL_ASSERT((int)states.size() == m_numStates, "Invalid state vector. Dimension mismatch");
   CalculateTrajectory(states, deltaVs);
}