Jump to content

getPhysicsBodyOfMesh to limit physics speed

bill barsch

Recommended Posts



I´m using the new babilon 2.3 and Cannon physics to take advantage of heightmaps physics.

I´m applying some impulses to move my Character and it´s ok, but I have to limit it speed, because it keeps growing and growing.

So I try to access the body inside the physics plugin engine with no success, to try some configs like: inertia(0,0,0) or somethink like that.

(I dont know if it will do what I want, using oimo.js, the ".body.linearVelocity.scaleEqual(0.92);" was working very well but oimo don´t have heightmaps physics that I need). 



I try: 


but getPhysicsBodyOfMesh is undefined.

I try scene.PhysicsEngine.getPhysicsBodyOfMesh()

but undefined too

How can I use this function?



Thanks very much!

Link to comment
Share on other sites

  • 2 weeks later...

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...