summaryrefslogtreecommitdiffstats
path: root/scene/3d/physics_body_3d.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-08-05 20:35:08 +0200
committerkobewi <kobewi4e@gmail.com>2022-08-23 23:21:32 +0200
commit1abdffe7a029daf634f57132cb5ab5d82a7ccfc9 (patch)
tree1b0d34d6c4bfb94b46b3640e17ce80b5dc291b11 /scene/3d/physics_body_3d.cpp
parentd5606503b47a98a5d1d925b2b655760dab850e6e (diff)
downloadredot-engine-1abdffe7a029daf634f57132cb5ab5d82a7ccfc9.tar.gz
Replace Array return types with TypedArray 2
Diffstat (limited to 'scene/3d/physics_body_3d.cpp')
-rw-r--r--scene/3d/physics_body_3d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp
index 515665bde6..bd03d22547 100644
--- a/scene/3d/physics_body_3d.cpp
+++ b/scene/3d/physics_body_3d.cpp
@@ -960,10 +960,10 @@ bool RigidDynamicBody3D::is_contact_monitor_enabled() const {
return contact_monitor != nullptr;
}
-Array RigidDynamicBody3D::get_colliding_bodies() const {
- ERR_FAIL_COND_V(!contact_monitor, Array());
+TypedArray<Node3D> RigidDynamicBody3D::get_colliding_bodies() const {
+ ERR_FAIL_COND_V(!contact_monitor, TypedArray<Node3D>());
- Array ret;
+ TypedArray<Node3D> ret;
ret.resize(contact_monitor->body_map.size());
int idx = 0;
for (const KeyValue<ObjectID, BodyState> &E : contact_monitor->body_map) {