Dioma on Nostr: #[0] I don't know of any lightweight 3d physics engine, only 2d ones. What do you ...
CrunkLord420 (npub164q…rjwa) I don't know of any lightweight 3d physics engine, only 2d ones. What do you need physics for? Preventing the player from walking through walls? That's easy enough to implement as long as you stick to only a few basic collisions shapes (aabb, sphere).
The hard part is simulating real physics objects with rotations and constrains, but you probably don't need that.
Maybe there is a library that only implements the seperation of axis algorithm.
Published at
2023-04-27 08:58:18Event JSON
{
"id": "9bf339febfcdb2f8c6dd002113501a6244dec3e6fdbd1796d6ae4fb3c8a96c8e",
"pubkey": "4372de9911e892f39c56c41e5789cb37d587d98ed2642235b7a87c6cb7887eaf",
"created_at": 1682585898,
"kind": 1,
"tags": [
[
"p",
"d540295588183537c015bb197bb408de3c37f917bd9855eb357d41b06f7e331b",
"wss://relay.mostr.pub"
],
[
"e",
"ba30b61fa5bc1a42848f92b2724916925d4c9e5517b69b70b18e9abf40b52259",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://kiwifarms.cc/objects/10ea67b1-d265-4e34-a329-2fedacfc9c15"
]
],
"content": "#[0] I don't know of any lightweight 3d physics engine, only 2d ones. What do you need physics for? Preventing the player from walking through walls? That's easy enough to implement as long as you stick to only a few basic collisions shapes (aabb, sphere). \nThe hard part is simulating real physics objects with rotations and constrains, but you probably don't need that.\nMaybe there is a library that only implements the seperation of axis algorithm.",
"sig": "1f50e2627a27b64893c4ea3ccc61ae652f1b76855c77e23e06a0c51348c88a7402607bf0e542708c9787faee5b09fa75945b353debdb13b92bfbb13063d6eda7"
}