mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Update remaining physics exclude parameters to use TypedArray
Also update the documentation to refer to the get_rid() method.
This commit is contained in:
parent
a8a88194a5
commit
4453d63bb0
12 changed files with 46 additions and 46 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue