jrouwe / JoltPhysics.js

Port of JoltPhysics to JavaScript using emscripten
MIT License
270 stars 21 forks source link

[Feature request] expose the APIs about CharacterVirtual & more APIs about Body #20

Closed finscn closed 1 year ago

finscn commented 1 year ago

Related discussion: the APIs about CharacterVirtual https://github.com/jrouwe/JoltPhysics.js/discussions/19

more APIs about Body https://github.com/jrouwe/JoltPhysics.js/discussions/18

jrouwe commented 1 year ago

I exposed both in 3e3e7702dd26a1bd8b9d0ea651dda9d0a4b6a3a0

to get a body use physicsSystem.GetBodyLockInterface().TryGetBody(body_id)

for the CharacterVirtual take a look at the C++ examples (it's the same interface, I didn't create a demo for it in JS yet)