๐–‰๐–Ž๐–Œ๐–Ž๐–’๐–Š๐–ˆ๐–๐–†๐–“๐–”๐–Ž๐–‰

digimechanoid.com

129,145 views
94 followers
11,070 updates
0 tips
Aframe question: Instead of using a heavy physics library (like CANNON.js or ammo.js, which can be super buggy and bloated), I ended up writing a custom collision component attached directly to the player's camera rig. It queries nearby invisible boundary boxes (represented as basic A-Frame boxes with a specific class) and uses basic Axis-Aligned Bounding Box (AABB) intersection math to resolve overlaps by pushing...
6 likes
win1999's avatar win1999 5 days ago

the player back along the axis of least penetration. For fast movement, it switches to a Swept AABB raycast to prevent the camera from clipping/phasing through walls. For complex 3D GLTF models, I have an auto-collision component that waits for the model to load..

4 likes
win1999's avatar win1999 5 days ago

It's far from perfect, and I won't go into the details of how much trial and error there was here.

4 likes

Website Stats

Last updated 8 hours ago
CreatedDec 26, 2021
Site Traffic Stats

Tags

music vr industrial vampire goth