2D rigid body physics engine
Loading...
8,516
Uploader Comments (Draknek)
see all
All Comments (24)
-
i'm new at this... but i try to figure out certain formulars for it, (already got spheare collisions to work using this pytaghorean formular and distance checking etc), would you mind giving me the formular / way you u did use for making the program being able to detect the local x and y coordinate for each polygon? I'd be sooooooo glad :)
have a nice day
hrsitcom
-
Actually, this isn't an engine. Just an application.
-
not much like 'phun'
-
Probably he hasn't read much from Dijkstra.
Loading...
what collision detection algorithm did you use? SAT? is this like if(ob 1 collides with ob 2) ob2 start moving in direction of ob 1 or something like that?
meming4 1 year ago
@meming4 Yes, the collision detection uses SAT. The collision resolution uses the normal from SAT as the direction in which to change the object's velocities.
My later videos have rotating bodies which makes the collision resolution more complicated but the collision detection is still SAT.
Draknek 1 year ago
@Draknek can you Give me a little sample code? maby just a formula? thnx
meming4 1 year ago
@meming4 For objects without rotation, look up "particle physics".
Draknek 1 year ago
Wow, I'm 2nd year CS and we're studying databases :(
Also good to see you're using Ubuntu. Apparently.
cyborgtroy 3 years ago
If you want to do something really interesting, you may have do it yourself in your own time.
That said, I don't know what your course is like but this was for my third year project, which was basically allowed to be anything we wanted.
Draknek 3 years ago