Reading http://doc.babylonjs.com/overviews/using_the_physics_engine#angular-velocity it says to use a Quaternion, but the code shows it accepts a Vector3 which is breaking my TypeScript code. It can't type assert to a Vector3 because Quaternion doesn't have toArray among other things. Does the func sig need to be updated or do the docs (and the example at https://www.babylonjs-playground.com/#IGM3H)?
↧