Keyboard re-attaches itself to camera after AddBehavior(mesh)

Here’s a weird one. Bug or by design?
https://playground.babylonjs.com/#RRYPSU#12

  1. Keyboard controls of camera are detached using camera.inputs.attached.keyboard.detachControl()
  2. After calling mesh.addBehavior(), keyboard controls to camera are re-attached.

pinging @PolygonalSun who is becoming our Inputs overlord ;D

1 Like

Hey @bigrig,

I’m not sure what’s going on off the top of my head but I’ll dig into the addBehavior function and see what I can find.

3 Likes