Jump to content

PhysicsImposter::setAngularVelocity Parameter Type


Recommended Posts

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)?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...