Claudette
 All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros
model_collision_test.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "base_collision_test.h"
4 
5 namespace Claudette {
6 
7 class CollisionModel3D;
8 
12 {
13 public:
16 
17  const CollisionModel3D* otherModel() const;
18  void setOtherModel(const CollisionModel3D* other);
19 
24  const float* otherModelTransform() const;
25  void setOtherModelTransform(const float trsf[16]);
26 
27  int accuracyDepth() const;
28  void setAccuracyDepth(int depth);
29 
30  bool maxProcessingTimedOut() const;
31 
33  const float* otherModelTriangle() const;
34 
36  int otherTriangleId() const;
37 
38  void computePoint();
39 
40 private:
41  friend class CollisionModel3D;
42 
43  const CollisionModel3D* m_otherModel;
44  const float* m_otherModelTransform;
45  int m_accuracyDepth;
46 
47  float m_otherColTri[9];
48  int m_iOtherColTri;
49 
51  bool m_colPointIsDirty;
52 
53  bool m_maxProcessingTimedOut;
54 };
55 
56 } // namespace Claudette
#define CLAUDETTE_LIB_EXPORT
Definition: global.h:21
Base class for all collision tests.
Collision Model, will represent the mesh to be tested for collisions.
Collision test between two meshes.