diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2022-11-23 18:32:30 +0100 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2022-11-23 19:39:04 +0100 |
commit | 4453d63bb0ce6ef891da3f0131e212ae54bde12c (patch) | |
tree | 5c1fac7fbe429f96e217e09e0885401195a22479 /servers/physics_server_2d.cpp | |
parent | a8a88194a5cf5849d421aaec05beddbc437ebbcd (diff) | |
download | redot-engine-4453d63bb0ce6ef891da3f0131e212ae54bde12c.tar.gz |
Update remaining physics exclude parameters to use TypedArray
Also update the documentation to refer to the get_rid() method.
Diffstat (limited to 'servers/physics_server_2d.cpp')
-rw-r--r-- | servers/physics_server_2d.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/physics_server_2d.cpp b/servers/physics_server_2d.cpp index 21be311637..c5a93cc390 100644 --- a/servers/physics_server_2d.cpp +++ b/servers/physics_server_2d.cpp @@ -479,8 +479,8 @@ void PhysicsTestMotionParameters2D::set_exclude_bodies(const TypedArray<RID> &p_ } } -Array PhysicsTestMotionParameters2D::get_exclude_objects() const { - Array exclude; +TypedArray<uint64_t> PhysicsTestMotionParameters2D::get_exclude_objects() const { + TypedArray<uint64_t> exclude; exclude.resize(parameters.exclude_objects.size()); int object_index = 0; @@ -491,7 +491,7 @@ Array PhysicsTestMotionParameters2D::get_exclude_objects() const { return exclude; } -void PhysicsTestMotionParameters2D::set_exclude_objects(const Array &p_exclude) { +void PhysicsTestMotionParameters2D::set_exclude_objects(const TypedArray<uint64_t> &p_exclude) { for (int i = 0; i < p_exclude.size(); ++i) { ObjectID object_id = p_exclude[i]; ERR_CONTINUE(object_id.is_null()); |