🕹️ Preparing a brand new BVH-based character controller which is lightweight, flexible, and requires…
@AndrewChenE1190 Follower
29.838 Aufrufe #threejs #threejsJourney #webdev
24 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

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

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

@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

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

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

@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

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

@TheEnijar
@garrettkjohnson This is so cool!
2 Likes

@VIGNEAurelien
@garrettkjohnson Impressive work 🔥🔥🔥
1 Like

@HelloSoweme
@bruno_simon @garrettkjohnson Cool! 👏👏
1 Like

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

@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

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

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

@nestorrig
@garrettkjohnson 👏👏👏
1 Like

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

@vladkrutenyuk
@garrettkjohnson is it based?

@AndrewChenE
@garrettkjohnson yup
1 Like

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

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


