mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Support for Dynamic BVH as 2D Physics broadphase
List of changes: - Modified bvh class to handle 2D and 3D as a template - Changes in Rect2, Vector2, Vector3 interface to uniformize template calls - New option in Project Settings to enable BVH for 2D Physics (enabled by default like in 3D)
This commit is contained in:
parent
595a74ca79
commit
d8f681029f
26 changed files with 425 additions and 173 deletions
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "broad_phase_2d_basic.h"
|
||||
|
||||
BroadPhase2DBasic::ID BroadPhase2DBasic::create(CollisionObject2DSW *p_object_, int p_subindex) {
|
||||
BroadPhase2DBasic::ID BroadPhase2DBasic::create(CollisionObject2DSW *p_object_, int p_subindex, const Rect2 &p_aabb, bool p_static) {
|
||||
|
||||
current++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue