Yo Soy Freeman on Nostr: Ah, so they are creating a BVH with the AABB of all the colliders, increasing them by ...
Ah, so they are creating a BVH with the AABB of all the colliders, increasing them by the area of the capsule projected on each axis in order to reduce the calculation to a ray hitting a box and using division by zero to quickly check if some value approx infinity, in which case you can skip any calculation involving comparison between anything is bigger than infinite and nothing smaller than minus infinity.
Basically, they are saving compute because they are culling AF
Published at
2024-05-06 19:20:26Event JSON
{
"id": "8e51cfe7cd0190b736ee26c75c94d8900fdb7ef7a12d3abc8ab6827fc9dddc4e",
"pubkey": "49ba75d9934fc475a43386ff2f28e9070e8f52be9ff882da5d49ccd137f1882b",
"created_at": 1715023226,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/YoSoyFreeman/statuses/112395762160112429",
"activitypub"
]
],
"content": "Ah, so they are creating a BVH with the AABB of all the colliders, increasing them by the area of the capsule projected on each axis in order to reduce the calculation to a ray hitting a box and using division by zero to quickly check if some value approx infinity, in which case you can skip any calculation involving comparison between anything is bigger than infinite and nothing smaller than minus infinity. \n\nBasically, they are saving compute because they are culling AF",
"sig": "0c270537ece6029c4c108cd684be27e3cd0bd56bf27d602c0fa6b2d541bfa698d01e105c9475a85901ac1b0489062549b3ccd8095239dc8331f3ac41a23ebfb3"
}