@@ -46,46 +46,33 @@ class ArcObstacle : public Obstacle
46
46
47
47
ArcObstacle ();
48
48
ArcObstacle (const MeshTransform& transform,
49
- const float * _pos, const float * _size,
49
+ const glm::vec3 & _pos, const glm::vec3 & _size,
50
50
float _rotation, float _angle, float _ratio,
51
51
const float _texsize[4 ], bool _useNormals,
52
52
int _divisions, const BzMaterial* mats[MaterialCount],
53
53
int physics, bool bounce, bool drive, bool shoot, bool ricochet);
54
54
~ArcObstacle ();
55
55
56
- Obstacle* copyWithTransform (const MeshTransform&) const ;
56
+ Obstacle* copyWithTransform (const MeshTransform&) const override ;
57
57
58
58
MeshObstacle* makeMesh ();
59
59
60
- const char * getType () const ;
60
+ const char * getType () const override ;
61
61
static const char * getClassName (); // const
62
- bool isValid () const ;
63
- bool isFlatTop () const ;
64
-
65
- float intersect (const Ray&) const ;
66
- void getNormal (const float * p, float * n) const ;
67
- void get3DNormal (const float * p, float * n) const ;
68
-
69
- bool inCylinder (const float * p, float radius, float height) const ;
70
- bool inBox (const float * p, float angle,
71
- float halfWidth, float halfBreadth, float height) const ;
72
- bool inMovingBox (const float * oldP, float oldAngle,
73
- const float *newP, float newAngle,
74
- float halfWidth, float halfBreadth, float height) const ;
75
- bool isCrossing (const float * p, float angle,
76
- float halfWidth, float halfBreadth, float height,
77
- float * plane) const ;
78
-
79
- bool getHitNormal (const float * pos1, float azimuth1,
80
- const float * pos2, float azimuth2,
81
- float halfWidth, float halfBreadth,
82
- float height, float * normal ) const ;
83
-
84
- int packSize () const ;
85
- void *pack (void *) const ;
86
- const void *unpack (const void *);
87
-
88
- void print (std::ostream& out, const std::string& indent) const ;
62
+ bool isValid () const override ;
63
+ bool isFlatTop () const override ;
64
+
65
+ float intersect (const Ray&) const override ;
66
+ void getNormal (const glm::vec3 &p, glm::vec3 &n) const override ;
67
+ void get3DNormal (const glm::vec3 &p, glm::vec3 &n) const override ;
68
+
69
+ bool inCylinder (const glm::vec3 &p, float radius, float height) const override ;
70
+
71
+ int packSize () const override ;
72
+ void *pack (void *) const override ;
73
+ const void *unpack (const void *) override ;
74
+
75
+ void print (std::ostream& out, const std::string& indent) const override ;
89
76
90
77
private:
91
78
void finalize ();
0 commit comments