![]() |
VR-Forces 4.10 Class Documentation
|
Public Types | |
| typedef boost::function< void(const DtIntersectorResult &, double)> | IntersectionCallback |
Public Member Functions | |
| DtProjectile (DtDe &de, const DtVector &start, const DtTaitBryan &orientation, double speed, const DtVector &direction, const std::string &modelDefinitionName, IntersectionCallback callback=(IntersectionCallback) 0) | |
| CTOR. More... | |
| virtual | ~DtProjectile () |
| Virtual DTOR. More... | |
| bool | tick (double simTime) |
| update mechanism More... | |
| DtElementID | id () const |
| return the projectile ID More... | |
Protected Member Functions | |
| virtual DtTaitBryan | orientationFromOldAndNewPositions (const DtVector &oldPos, const DtVector &newPos) |
| return projectile orientation More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtDe reference. More... | |
| DtEntity3dFacade * | myFacade |
| DtTaitBryan | myOrientation |
| projectile orientation More... | |
| double | myFiringStartTime |
| simulation time that the projectile got fired More... | |
| IntersectionCallback | myIntersectionCallback |
| Intersection function callback. More... | |
| DtVector | myFiringPosition |
| initial projectile position More... | |
| DtVector | myDirection |
| vector direction More... | |
| DtVector | myVelocity0 |
| speed of the projectile More... | |
| DtVector | myAcceleration |
| projectile acceleration More... | |
| typedef boost::function<void ( const DtIntersectorResult&, double )> makVrv::DtProjectile::IntersectionCallback |
| makVrv::DtProjectile::DtProjectile | ( | DtDe & | de, |
| const DtVector & | start, | ||
| const DtTaitBryan & | orientation, | ||
| double | speed, | ||
| const DtVector & | direction, | ||
| const std::string & | modelDefinitionName, | ||
| IntersectionCallback | callback = (IntersectionCallback) 0 |
||
| ) |
CTOR.
|
virtual |
Virtual DTOR.
| DtElementID makVrv::DtProjectile::id | ( | ) | const |
return the projectile ID
|
protectedvirtual |
return projectile orientation
|
protected |
|
protected |
projectile orientation
|
protected |
simulation time that the projectile got fired
|
protected |
Intersection function callback.
|
protected |
initial projectile position
|
protected |
vector direction
|
protected |
speed of the projectile
|
protected |
projectile acceleration