Navigation überspringen
🕹️ Preparing a brand new BVH-based character controller which is lightweight, flexible, and requires…
0:00 / 1:11

🕹️ Preparing a brand new BVH-based character controller which is lightweight, flexible, and requires…

Andrew Chen

@AndrewChenE1190 Follower

Auf X besuchen

29.838 Aufrufe #threejs #threejsJourney #webdev

🕹️ Preparing a brand new BVH-based character controller which is lightweight, flexible, and requires no physics engine. 🍻 Big thanks to Garrett Johnson for his incredible three-mesh-bvh library that made all this possible. #threejs #threejsJourney #webdev #gamedev #r3f #ecctrl

24 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Bruno Simon

    @bruno_simon

    @garrettkjohnson That final view with all the rooms and a good frame rate 🔥

    10 Likes

  • Profilbild von Andrew Chen

    @AndrewChenE

    @garrettkjohnson Thanks, Bruno! That’s what I’m aiming for! 😄

    2 Likes

  • Profilbild von VoR

    @SketchpunkLabs

    @garrettkjohnson Whats shapecst? Is that like a sphere cast you might find in unity? Is it all "casting" or are you also doing capsule intersection testing with other primitive bounding shapes like cuboids & spheres?

    2 Likes

  • Profilbild von Andrew Chen

    @AndrewChenE

    @garrettkjohnson This controller uses the built-in shapecast feature from three-mesh-bvh. I actually checks for intersections between shape and BVHs. Rapier provides a shapecast more similar to Unity’s. I will upgrade it to #Ecctrl later on.

  • Profilbild von VoR

    @SketchpunkLabs

    @garrettkjohnson awesome. I can't wait to check out the demo & code for the bvh upgrade to the controller.

    2 Likes

  • Profilbild von Jaroslav Stehlik (mystery)

    @jaroslavstehlik

    @garrettkjohnson I am personally more interested in the controller it self. Its actually not easy to write or find a nice character controller which can move on various terrains, edges and detect correctly ground etc.

    2 Likes

  • Profilbild von Andrew Chen

    @AndrewChenE

    @garrettkjohnson Thanks! For now, you could try out #ecctrl. Using similar technique but a physics-based controller.

    4 Likes

  • Profilbild von James

    @TheEnijar

    @garrettkjohnson This is so cool!

    2 Likes

  • Profilbild von Aurelien Vigne

    @VIGNEAurelien

    @garrettkjohnson Impressive work 🔥🔥🔥

    1 Like

  • Profilbild von Soweme

    @HelloSoweme

    @bruno_simon @garrettkjohnson Cool! 👏👏

    1 Like

  • Profilbild von Ademola

    @Ademola_4life

    @garrettkjohnson Oh excited 😃! What's the performance compared to rapier?

    1 Like

  • Profilbild von Andrew Chen

    @AndrewChenE

    @garrettkjohnson Hard to compare. This controller is optimized for static collisions detection. I tested it with 1,681 map models and held a stable 60fps. Rapier isn’t built for that many trimesh colliders and would likely struggle in a similar setup.

    5 Likes

  • Profilbild von Sean C

    @Seanmclem

    @Ademola_4life @garrettkjohnson Does it work to still collide with other physics engine objects like rapier?

  • Profilbild von Andrew Chen

    @AndrewChenE

    @Ademola_4life @garrettkjohnson It’s possible to bind a rapier collider with the character, but in that case, I think Ecctrl would be a better choice. 🧐

  • Profilbild von Nestor Rios Garcia

    @nestorrig

    @garrettkjohnson 👏👏👏

    1 Like

  • Profilbild von Andy

    @andyt443

    @garrettkjohnson I had trouble with react three fiber rapier physics with ref/forwardRef for #threejs I submitted a bug report, as AI and I believe it's a problem with the physics component. Maybe it's a newbie issue as it's my 1st react.js project. Can you help?

  • Profilbild von Vlad Krutenyuk (kvy)

    @vladkrutenyuk

    @garrettkjohnson is it based?

  • Profilbild von Andrew Chen

    @AndrewChenE

    @garrettkjohnson yup

    1 Like

  • Profilbild von Vlad Krutenyuk (kvy)

    @vladkrutenyuk

    @garrettkjohnson is it available to try? im working on char controllers using physics. its very interesting to check alternative way

  • Profilbild von Andrew Chen

    @AndrewChenE

    @garrettkjohnson Not at the moment, but you can try out the physics-based controller here