Jump to content

Character Controller in JavaScript


Recommended Posts

Hi, there,


I'm looking for a 3D physics library in JavaScript, which has kinda Kinematic Character Controller and Height Map(aka Height Field), like this video.


I expect, player will:


- not slip down on gentle slopes

- slip down on steep slopes

- not jump after though uphills

- not slow down during ascending slopes

- hit walls


Dose anyone know it? Thanks,

Link to comment
Share on other sites

  • 2 weeks later...

Hi there.  PlayCanvas can do that easily - it uses a custom build of ammo.js internally.  For example, check this out:




And the project is here:


https://playcanvas.com/playcanvas/physics (you'll need to log in to play with it)


That has a simple dynamic character controller in it.  You can also select the dynamic bodies and throw them around.  It probably took about an hour to build that scene in PlayCanvas.  Feel free to fork the project and turn it into something else.  Or use the script code as a starting point.  Have fun and hope that helps!  :)

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