int PhysicsServerSW::space_get_contact_count(RID p_space) const { SpaceSW *space = space_owner.get(p_space); ERR_FAIL_COND_V(!space,0); return space->get_debug_contact_count(); }