summaryrefslogtreecommitdiff
path: root/servers/physics/shape_sw.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/physics/shape_sw.h')
-rw-r--r--servers/physics/shape_sw.h31
1 files changed, 9 insertions, 22 deletions
diff --git a/servers/physics/shape_sw.h b/servers/physics/shape_sw.h
index 62a6cb7f29..eaae64be66 100644
--- a/servers/physics/shape_sw.h
+++ b/servers/physics/shape_sw.h
@@ -31,7 +31,6 @@
#ifndef SHAPE_SW_H
#define SHAPE_SW_H
-#include "core/math/bsp_tree.h"
#include "core/math/geometry.h"
#include "servers/physics_server.h"
/*
@@ -297,8 +296,8 @@ struct ConcavePolygonShapeSW : public ConcaveShapeSW {
int indices[3];
};
- PoolVector<Face> faces;
- PoolVector<Vector3> vertices;
+ Vector<Face> faces;
+ Vector<Vector3> vertices;
struct BVH {
@@ -309,7 +308,7 @@ struct ConcavePolygonShapeSW : public ConcaveShapeSW {
int face_index;
};
- PoolVector<BVH> bvh;
+ Vector<BVH> bvh;
struct _CullParams {
@@ -342,10 +341,10 @@ struct ConcavePolygonShapeSW : public ConcaveShapeSW {
void _fill_bvh(_VolumeSW_BVH *p_bvh_tree, BVH *p_bvh_array, int &p_idx);
- void _setup(PoolVector<Vector3> p_faces);
+ void _setup(Vector<Vector3> p_faces);
public:
- PoolVector<Vector3> get_faces() const;
+ Vector<Vector3> get_faces() const;
virtual PhysicsServer::ShapeType get_type() const { return PhysicsServer::SHAPE_CONCAVE_POLYGON; }
@@ -368,7 +367,7 @@ public:
struct HeightMapShapeSW : public ConcaveShapeSW {
- PoolVector<real_t> heights;
+ Vector<real_t> heights;
int width;
int depth;
real_t cell_size;
@@ -376,10 +375,10 @@ struct HeightMapShapeSW : public ConcaveShapeSW {
//void _cull_segment(int p_idx,_SegmentCullParams *p_params) const;
//void _cull(int p_idx,_CullParams *p_params) const;
- void _setup(PoolVector<real_t> p_heights, int p_width, int p_depth, real_t p_cell_size);
+ void _setup(Vector<real_t> p_heights, int p_width, int p_depth, real_t p_cell_size);
public:
- PoolVector<real_t> get_heights() const;
+ Vector<real_t> get_heights() const;
int get_width() const;
int get_depth() const;
real_t get_cell_size() const;
@@ -468,16 +467,4 @@ struct MotionShapeSW : public ShapeSW {
MotionShapeSW() { configure(AABB()); }
};
-struct _ShapeTestConvexBSPSW {
-
- const BSP_Tree *bsp;
- const ShapeSW *shape;
- Transform transform;
-
- _FORCE_INLINE_ void project_range(const Vector3 &p_normal, real_t &r_min, real_t &r_max) const {
-
- shape->project_range(p_normal, transform, r_min, r_max);
- }
-};
-
-#endif // SHAPESW_H
+#endif // SHAPE_SW_H