summaryrefslogtreecommitdiffstats
path: root/modules/gltf
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-27 16:37:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-27 16:37:07 +0100
commit21e3b2111e4989e89403c4bc505c4ddd9dfec6a7 (patch)
treef995b57aed5297c4c821b01748bc9e7b147de3c0 /modules/gltf
parent9dceb626d68d45e5f0f77a2c949f3effe1416530 (diff)
parent35dafc9fa8ac26cca9ca1da606cbfe782468d05f (diff)
downloadredot-engine-21e3b2111e4989e89403c4bc505c4ddd9dfec6a7.tar.gz
Merge pull request #88862 from smix8/split_physics_classes
Split monolithic physics class files
Diffstat (limited to 'modules/gltf')
-rw-r--r--modules/gltf/extensions/physics/gltf_document_extension_physics.cpp3
-rw-r--r--modules/gltf/extensions/physics/gltf_physics_body.cpp7
-rw-r--r--modules/gltf/extensions/physics/gltf_physics_body.h2
-rw-r--r--modules/gltf/extensions/physics/gltf_physics_shape.cpp2
-rw-r--r--modules/gltf/extensions/physics/gltf_physics_shape.h2
5 files changed, 10 insertions, 6 deletions
diff --git a/modules/gltf/extensions/physics/gltf_document_extension_physics.cpp b/modules/gltf/extensions/physics/gltf_document_extension_physics.cpp
index a9033de7ae..c6e34cc023 100644
--- a/modules/gltf/extensions/physics/gltf_document_extension_physics.cpp
+++ b/modules/gltf/extensions/physics/gltf_document_extension_physics.cpp
@@ -30,7 +30,8 @@
#include "gltf_document_extension_physics.h"
-#include "scene/3d/area_3d.h"
+#include "scene/3d/physics/area_3d.h"
+#include "scene/3d/physics/static_body_3d.h"
// Import process.
Error GLTFDocumentExtensionPhysics::import_preflight(Ref<GLTFState> p_state, Vector<String> p_extensions) {
diff --git a/modules/gltf/extensions/physics/gltf_physics_body.cpp b/modules/gltf/extensions/physics/gltf_physics_body.cpp
index 271bb9b332..7929b46542 100644
--- a/modules/gltf/extensions/physics/gltf_physics_body.cpp
+++ b/modules/gltf/extensions/physics/gltf_physics_body.cpp
@@ -30,8 +30,11 @@
#include "gltf_physics_body.h"
-#include "scene/3d/area_3d.h"
-#include "scene/3d/vehicle_body_3d.h"
+#include "scene/3d/physics/animatable_body_3d.h"
+#include "scene/3d/physics/area_3d.h"
+#include "scene/3d/physics/character_body_3d.h"
+#include "scene/3d/physics/static_body_3d.h"
+#include "scene/3d/physics/vehicle_body_3d.h"
void GLTFPhysicsBody::_bind_methods() {
ClassDB::bind_static_method("GLTFPhysicsBody", D_METHOD("from_node", "body_node"), &GLTFPhysicsBody::from_node);
diff --git a/modules/gltf/extensions/physics/gltf_physics_body.h b/modules/gltf/extensions/physics/gltf_physics_body.h
index 6b21639a7b..ec139054ff 100644
--- a/modules/gltf/extensions/physics/gltf_physics_body.h
+++ b/modules/gltf/extensions/physics/gltf_physics_body.h
@@ -31,7 +31,7 @@
#ifndef GLTF_PHYSICS_BODY_H
#define GLTF_PHYSICS_BODY_H
-#include "scene/3d/physics_body_3d.h"
+#include "scene/3d/physics/physics_body_3d.h"
// GLTFPhysicsBody is an intermediary between Godot's physics body nodes
// and the OMI_physics_body extension.
diff --git a/modules/gltf/extensions/physics/gltf_physics_shape.cpp b/modules/gltf/extensions/physics/gltf_physics_shape.cpp
index 467499a03f..35c99adbe5 100644
--- a/modules/gltf/extensions/physics/gltf_physics_shape.cpp
+++ b/modules/gltf/extensions/physics/gltf_physics_shape.cpp
@@ -33,7 +33,7 @@
#include "../../gltf_state.h"
#include "core/math/convex_hull.h"
-#include "scene/3d/area_3d.h"
+#include "scene/3d/physics/area_3d.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
diff --git a/modules/gltf/extensions/physics/gltf_physics_shape.h b/modules/gltf/extensions/physics/gltf_physics_shape.h
index 4f7ac39292..ec0a8931f1 100644
--- a/modules/gltf/extensions/physics/gltf_physics_shape.h
+++ b/modules/gltf/extensions/physics/gltf_physics_shape.h
@@ -33,7 +33,7 @@
#include "../../gltf_defines.h"
-#include "scene/3d/collision_shape_3d.h"
+#include "scene/3d/physics/collision_shape_3d.h"
class ImporterMesh;