Merge pull request #64802 from benbot/master
This commit is contained in:
@@ -525,7 +525,7 @@ void RigidDynamicBody3D::_body_state_changed(PhysicsDirectBodyState3D *p_state)
|
||||
}
|
||||
|
||||
_RigidDynamicBodyInOut *toadd = (_RigidDynamicBodyInOut *)alloca(p_state->get_contact_count() * sizeof(_RigidDynamicBodyInOut));
|
||||
int toadd_count = 0; //state->get_contact_count();
|
||||
int toadd_count = 0;
|
||||
RigidDynamicBody3D_RemoveAction *toremove = (RigidDynamicBody3D_RemoveAction *)alloca(rc * sizeof(RigidDynamicBody3D_RemoveAction));
|
||||
int toremove_count = 0;
|
||||
|
||||
@@ -537,8 +537,6 @@ void RigidDynamicBody3D::_body_state_changed(PhysicsDirectBodyState3D *p_state)
|
||||
int local_shape = p_state->get_contact_local_shape(i);
|
||||
int shape = p_state->get_contact_collider_shape(i);
|
||||
|
||||
//bool found=false;
|
||||
|
||||
HashMap<ObjectID, BodyState>::Iterator E = contact_monitor->body_map.find(obj);
|
||||
if (!E) {
|
||||
toadd[toadd_count].rid = rid;
|
||||
|
||||
Reference in New Issue
Block a user