Example

Physics Test

5

McPepic 2022-10-04 16:08

Everybody’s been doing physics stuff lately and I thought I’d contribute a simulation I’ve been working on.

Physics Test.nx | Open in app
2022-10-04 16:08

SP4CEBAR 2022-10-04 18:57 (Edited)

all because 412lo wanted to know about gravity, lol


SP4CEBAR 2022-10-04 18:57 (Edited)

This world looks really clean!


McPepic 2022-10-05 00:02

Thanks! I wanted to keep the visuals simple to make it easier to see what's going on. I wanted to make the movement really precise without limiting the FPS.

I did this by constantly tracking the frames and dividing all changes in movement by the current speed of the simulation. The only problem comes in when the simulation gets too slow.

I'm planning on having it check all positions between frames so I can prevent objects from moving past walls.


Log in to reply.