Rotor rotation bug

I noticed an interesting point. Why if you start the rotation asynchronously, then it does not work?

https://playground.babylonjs.com/#5W5B6W#69

setTimeout(() => joint1.setMotor(3 * forceFactor, 20 * forceFactor), 5000)

Pinging @RaananW / @Cedric

An old demo of mine, converted to ammo :slight_smile: that’s fun!

The issue is that the impostors are asleep (to keep the engine efficient, it puts objects that did “nothing” for a while to a frozen sleep). You can “wake’em up” by calling wakeUp:

https://playground.babylonjs.com/#5W5B6W#71

3 Likes