An RPG dungeon crawler would be pretty awesome! If you do plan on making it, make sure to use the version from my GitHub since that's the one being constantly updated.
3D Physics Engine
- ShoesForClues
- Prole
- Posts: 15
- Joined: Wed Dec 12, 2018 1:43 pm
Re: 3D Physics Engine
-
- Prole
- Posts: 8
- Joined: Sat Apr 06, 2024 12:30 am
Re: 3D Physics Engine
Wow! This is impresive!ShoesForClues wrote: ↑Sun Mar 17, 2024 12:17 am Sup y'all. Been working on a 3D physics engine for a while and finally made progress with this.
This engine uses a clipping algorithm that I came up with and does not rely on GJK/EPA or SAT. This does give the disadvantage of it only working with vertex shapes.
Screenshots
I'll release the source of this soon, once I clean up the code. It's not as stable and kinda laggy atm.
UPDATE: Here is the preview demo!
CONTROLS:Apologies if the code is messy. Some of it dates back to 2 years ago!
- Use WASDEQ and mouse buttons to move the camera
- Press [1] to toggle wireframe
- Press [2] to toggle bounding boxes
- Press [3] to pause the physics simulation and [T] to step through each frame
- Press [F] to fire an object
- Press [R] to move all objects
Please also consider following my GitHub for updates: https://github.com/0x1ED1CE/FPS
-
- Prole
- Posts: 1
- Joined: Sun Jul 28, 2024 9:08 am
Re: 3D Physics Engine
I was looking for a 3D physics engine in lua and this looks very good!
I'm a Unity developer, but I have an authoritative server written in lua and my aim is doing all physics calculation there and using Unity only as viewer, level designer and to collect input.
I also need the simulation to be deterministic, is your physics engine deterministic?
I'm a Unity developer, but I have an authoritative server written in lua and my aim is doing all physics calculation there and using Unity only as viewer, level designer and to collect input.
I also need the simulation to be deterministic, is your physics engine deterministic?
Re: 3D Physics Engine
Hello what you did is very impressive truning a 2d engine to a 3d engine is madness but I am just here to say that I made it compatible with touch controls and can I share it here
- ShoesForClues
- Prole
- Posts: 15
- Joined: Wed Dec 12, 2018 1:43 pm
Re: 3D Physics Engine
Hey! Sorry for the late reply. As for your question, it should be as long as you're feeding it the exact same inputs. Though even that can have many variables at play. Such as floating point precision, clock resolution, etc.simonfriend wrote: ↑Sun Jul 28, 2024 9:47 am I was looking for a 3D physics engine in lua and this looks very good!
I'm a Unity developer, but I have an authoritative server written in lua and my aim is doing all physics calculation there and using Unity only as viewer, level designer and to collect input.
I also need the simulation to be deterministic, is your physics engine deterministic?
- ShoesForClues
- Prole
- Posts: 15
- Joined: Wed Dec 12, 2018 1:43 pm
Re: 3D Physics Engine
Here is the touch control compatible version then
D-pad to move
A down
B up
X summon a phisics object
Y grab
And I couldn't add the rest of the buttons because I ran out of them I could use the new version of my buttons library that allows you to add as much buttons as you want but I didn't want to change the code too much
Also there are some bugs with the size of the buttons I don't know why it's happening in my phone it's fine but in higher resolutions it's a bit unusable and the scrolling is a bit bizarre when you press multiple buttons at once because it uses mousemoved and this one tracks only the first touch
D-pad to move
A down
B up
X summon a phisics object
Y grab
And I couldn't add the rest of the buttons because I ran out of them I could use the new version of my buttons library that allows you to add as much buttons as you want but I didn't want to change the code too much
Also there are some bugs with the size of the buttons I don't know why it's happening in my phone it's fine but in higher resolutions it's a bit unusable and the scrolling is a bit bizarre when you press multiple buttons at once because it uses mousemoved and this one tracks only the first touch
- Attachments
-
- demo[touch control compatible].love
- (64.14 KiB) Downloaded 1844 times
Who is online
Users browsing this forum: Avic and 0 guests