![]() |
VR-Forces 5.0.2 Developer's Guide
|
This will keep track of the missile target, attacker and have an accessor to distance to target object.

Public Member Functions | |
| DtMissileSimObjectDecorator (const DtSimObject *) | |
| virtual | ~DtMissileSimObjectDecorator () |
| virtual DtVector | targetLocation () const |
| virtual double | distanceSquaredToTarget (DtVector *vectorToTargetReturn=nullptr) const |
| virtual bool | passedTarget () const |
| virtual const DtUUID & | target () const |
| virtual const DtUUID & | attacker () const |
Public Member Functions inherited from DtSimObjectDecorator | |
| DtSimObjectDecorator (const DtSimObject *) | |
| virtual | ~DtSimObjectDecorator () |
Public Member Functions inherited from DtDecoratorBase | |
| DtDecoratorBase () | |
| virtual | ~DtDecoratorBase () |
Public Attributes | |
| boost::signals2::signal< void()> | signal_targetAttackerChanged |
Public Attributes inherited from DtDecoratorBase | |
| boost::signals2::signal< void()> | signal_decoratorDeleted |
Protected Member Functions | |
| virtual void | updateMissileInformation () |
Protected Attributes | |
| DtSimObjectReference | myTargetObject |
| DtUUID | myTarget |
| DtUUID | myAttacker |
| DtVector | myTargetPoint |
| boost::signals2::scoped_connection | myMissileInfoUpdatedConnection |
Protected Attributes inherited from DtSimObjectDecorator | |
| DtSimObjectReference | mySimObject |
| DtMissileSimObjectDecorator::DtMissileSimObjectDecorator | ( | const DtSimObject * | ) |
|
virtual |
|
virtual |
If target is valid then use the target's geocentric location, else use the location in the target location as a geocentric point. This is all only valid for VR-Forces missiles.
|
virtual |
Returns the distance from this object (current frame) to the target, squared.
|
virtual |
Returns true if this object has passed the target.
|
virtual |
|
virtual |
|
protectedvirtual |
| boost::signals2::signal<void ()> DtMissileSimObjectDecorator::signal_targetAttackerChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |