mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #111424 from lawnjelly/span
[3.x] Add `Span` and some basic uses from `Geometry`.
This commit is contained in:
commit
5b8789e83a
12 changed files with 264 additions and 18 deletions
|
@ -536,7 +536,7 @@ bool EditorSpatialGizmo::intersect_frustum(const Camera *p_camera, const Vector<
|
|||
transformed_frustum.push_back(it.xform(p_frustum[i]));
|
||||
}
|
||||
|
||||
Vector<Vector3> convex_points = Geometry::compute_convex_mesh_points(p_frustum.ptr(), p_frustum.size());
|
||||
Vector<Vector3> convex_points = Geometry::compute_convex_mesh_points(p_frustum);
|
||||
|
||||
if (collision_mesh->inside_convex_shape(transformed_frustum.ptr(), transformed_frustum.size(), convex_points.ptr(), convex_points.size(), mesh_scale)) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue