47 virtual const char*
type()
const override;
64 static void moveToCallback (
DtSimMessage* msg,
void* user);
84 virtual void tick()
override;
100 virtual void initializeLocals(
const DtVector& globalTarget);
105 virtual double getAtDistance()
const;
111 virtual bool setupControlPoint();
116 virtual bool passedGoal();
119 virtual bool atGoal();
127 virtual void controlMovement();
130 virtual void processEstimatedTotCalculation();
141 DtBoolean myPassedGoal =
false;
142 DtBoolean myAtGoal =
false;
155 double myAtDistance = 0.;
158 const double DtEstimatedTotCalcInterval = 5.0;
161 bool myEstimatedTotCalcEnabled =
true;
163 double myEstimatedTotValue = 0.0;
165 double myEstimatedTotLastCalcTime = 0.0;
DtLocation3D myAimingPoint
Note: in general, this is not the negation of the goal-to-entit...
Definition: surfaceEntityMoveToController.h:151
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtSurfaceEntityMoveToController is a controller that models the movement of a surface entity to a spe...
Definition: surfaceEntityMoveToController.h:29
DtVector myControlPointLastLocation
Stores last known location of the waypoint.
Definition: surfaceEntityMoveToController.h:137
virtual void registerTaskMsgCallbacks()
DtVector2D myCurrentEntityToGoal2DVector
Definition: surfaceEntityMoveToController.h:144
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual void clearTask() override
Calls down to the base class and then calls allowDeactivation() on mySurfaceControlPortGroup.
Definition: readerWriterRegistry.h:39
DtVector myEstimatedTotTextPos
tot text position
Definition: surfaceEntityMoveToController.h:167
const DtSurfaceEntityPilotController & operator=(const DtSurfaceEntityPilotController &orig)
assignment operator; not implemented
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick. Implemented by subclasses. ...
Definition: simComponent.h:443
DtVector2D myCurrentGoalToEntity2DVector
Definition: surfaceEntityMoveToController.h:143
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
File: simMsg.h.
Definition: simMessage.h:35
DtLocation3D myEntityPoint
These data are computed each tick and used later in the same tick.
Definition: surfaceEntityMoveToController.h:140
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtVector2D is a vector in earth-relative coordinates, e.g. east-north. Its direction in space depends...
Definition: scriptGeometry.h:289
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
The DtSurfaceEntityPilotController provides basic movement capabilities for surface entities and crea...
Definition: surfaceEntityPilotController.h:78
virtual void tick() override
Overridden to check for valid myProcessState pointer. If it is null a warning is printed to the objec...
A locally simulated VRF object.
Definition: localObject.h:98
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22