VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProjectile.h
Go to the documentation of this file.
1 /*****************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
11 #include "exampleProjectile.h"
12 
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <matrix/vlVector.h>
16 #include <matrix/vlTaitBryan.h>
17 
18 #include <boost/unordered_map.hpp>
19 #include <boost/function.hpp>
20 
21 #include <string>
22 
23 // Use the VR-Vantage namespace.
24 // All classes in VR-Vantage are in this namespace.
25 
26 namespace makVrv
27 {
28  class DtEntity3dFacade;
29  class DtDe;
30  class DtIntersectorResult;
31 
33  {
34  public:
35 
36  typedef boost::function<void ( const DtIntersectorResult&, double )> IntersectionCallback;
37 
38  public:
40  DtProjectile(DtDe& de, const DtVector& start, const DtTaitBryan& orientation, double speed,
41  const DtVector& direction, const std::string& modelDefinitionName,
43 
45  virtual ~DtProjectile();
46 
48  bool tick( double simTime );
49 
51  DtElementID id() const;
52 
53  protected:
54 
56  virtual DtTaitBryan orientationFromOldAndNewPositions(const DtVector& oldPos, const DtVector& newPos );
57 
58  protected:
59 
65  DtTaitBryan myOrientation;
70 
79  };
80 }
DtTaitBryan myOrientation
projectile orientation
Definition: DtProjectile.h:65
DtVector myFiringPosition
initial projectile position
Definition: DtProjectile.h:72
DtEntity3dFacade * myFacade
Definition: DtProjectile.h:63
boost::function< void(const DtIntersectorResult &, double)> IntersectionCallback
Definition: DtProjectile.h:36
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
DtVector myDirection
vector direction
Definition: DtProjectile.h:74
The DtEntity3dFacade is a facade around agents that make up an entity in the 3D model set...
Definition: DtEntity3dFacade.h:39
#define DT_DLL_EXAMPLEPROJECTILE
Definition: exampleProjectile.h:20
DtVector myVelocity0
speed of the projectile
Definition: DtProjectile.h:76
Contains makVrv::DtUniqueID type.
DtDe & myDe
DtDe reference.
Definition: DtProjectile.h:61
Definition: DtProjectile.h:32
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
double myFiringStartTime
simulation time that the projectile got fired
Definition: DtProjectile.h:67
IntersectionCallback myIntersectionCallback
Intersection function callback.
Definition: DtProjectile.h:69
DtVector myAcceleration
projectile acceleration
Definition: DtProjectile.h:78

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)