Moving a physics object that is asleep (without physics)

Is it possible to move an object that already has a physics aggregate connected to it?

I have a bunch of cubes with the startAsleep set to true and I want them to rotate on their own before there is any interaction and they wake up.

cc @Cedric

I’ve just found out that you can dispose of the aggregate, do the move/rotate and then re-create the aggregate.

As an alternative you could also use body.disablePreStep
https://doc.babylonjs.com/features/featuresDeepDive/physics/perfTips
**see first snippet

1 Like

Or you can set the motionType to Animated and handle the animation/rotation on your side. It can then collide with Dynamic bodies.