How to Wake up all RigidBody?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS

RigidBody in order to optimize fall asleep. At certain events, they all need to Wake up. How to do this?

Aren’t they supposed to wake up automatically when something makes them collide?

Zylann | 2018-06-08 12:51

One RigidBody, lies on the other RigidBody. They both sleep. I’m taking a RigidBody lower inventory = removed from the scene. The upper RigidBody remains hanging in the air. I want to Wake up all the RigidBody when I take an item from the scene in my inventory.

DimitriyPS | 2018-06-08 14:36

Maybe you can try apply_impulse with a force of zero?
Otherwise there is a function in PhysicsServer: PhysicsServer — Godot Engine (3.0) documentation in English

Zylann | 2018-06-08 16:36