VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtProjectile Class Reference

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

DtDemyDe
 DtDe reference. More...
 
DtEntity3dFacademyFacade
 
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...
 

Member Typedef Documentation

typedef boost::function<void ( const DtIntersectorResult&, double )> makVrv::DtProjectile::IntersectionCallback

Constructor & Destructor Documentation

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 makVrv::DtProjectile::~DtProjectile ( )
virtual

Virtual DTOR.

Member Function Documentation

bool makVrv::DtProjectile::tick ( double  simTime)

update mechanism

DtElementID makVrv::DtProjectile::id ( ) const

return the projectile ID

virtual DtTaitBryan makVrv::DtProjectile::orientationFromOldAndNewPositions ( const DtVector oldPos,
const DtVector newPos 
)
protectedvirtual

return projectile orientation

Member Data Documentation

DtDe& makVrv::DtProjectile::myDe
protected

DtDe reference.

DtEntity3dFacade* makVrv::DtProjectile::myFacade
protected
DtTaitBryan makVrv::DtProjectile::myOrientation
protected

projectile orientation

double makVrv::DtProjectile::myFiringStartTime
protected

simulation time that the projectile got fired

IntersectionCallback makVrv::DtProjectile::myIntersectionCallback
protected

Intersection function callback.

DtVector makVrv::DtProjectile::myFiringPosition
protected

initial projectile position

DtVector makVrv::DtProjectile::myDirection
protected

vector direction

DtVector makVrv::DtProjectile::myVelocity0
protected

speed of the projectile

DtVector makVrv::DtProjectile::myAcceleration
protected

projectile acceleration


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)