diff options
| author | Ferenc Arn | 2017-01-14 14:35:39 -0600 |
|---|---|---|
| committer | Ferenc Arn | 2017-01-16 13:36:33 -0600 |
| commit | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (patch) | |
| tree | 4d45d7e600a069d7feb2a2dae3a70d6b9ddbf884 /core/math/bsp_tree.h | |
| parent | d13f2f9e25e380496e706b59720cd85eed299ca2 (diff) | |
| download | godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.gz godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.zst godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.zip | |
Diffstat (limited to 'core/math/bsp_tree.h')
| -rw-r--r-- | core/math/bsp_tree.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/bsp_tree.h b/core/math/bsp_tree.h index a64fffcb7..c0071438d 100644 --- a/core/math/bsp_tree.h +++ b/core/math/bsp_tree.h @@ -66,7 +66,7 @@ private: Vector<Node> nodes; Vector<Plane> planes; Rect3 aabb; - float error_radius; + real_t error_radius; int _get_points_inside(int p_node,const Vector3* p_points,int *p_indices, const Vector3& p_center,const Vector3& p_half_extents,int p_indices_count) const; @@ -91,8 +91,8 @@ public: BSP_Tree(); BSP_Tree(const Variant& p_variant); - BSP_Tree(const PoolVector<Face3>& p_faces,float p_error_radius=0); - BSP_Tree(const Vector<Node> &p_nodes, const Vector<Plane> &p_planes, const Rect3& p_aabb,float p_error_radius=0); + BSP_Tree(const PoolVector<Face3>& p_faces,real_t p_error_radius=0); + BSP_Tree(const Vector<Node> &p_nodes, const Vector<Plane> &p_planes, const Rect3& p_aabb,real_t p_error_radius=0); ~BSP_Tree(); }; @@ -110,7 +110,7 @@ bool BSP_Tree::_test_convex(const Node* p_nodes, const Plane* p_planes,int p_cur const Plane& p=p_planes[n.plane]; - float min,max; + real_t min,max; p_convex.project_range(p.normal,min,max); bool go_under = min < p.d; |
