mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Place a hard limit on the max_contacts_reported property
This commit is contained in:
parent
7598b08ec2
commit
a5de242a2f
7 changed files with 9 additions and 1 deletions
|
|
@ -175,6 +175,7 @@ public:
|
|||
}
|
||||
|
||||
_FORCE_INLINE_ void set_max_contacts_reported(int p_size) {
|
||||
ERR_FAIL_INDEX(p_size, MAX_CONTACTS_REPORTED_3D_MAX);
|
||||
contacts.resize(p_size);
|
||||
contact_count = 0;
|
||||
if (mode == PhysicsServer3D::BODY_MODE_KINEMATIC && p_size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue