How to make physics with a GUI

Is it possible to have physics with a GUI?

A good example of what im trying to achive is Mr. Doobs infamous Google Gravity site.

Thoughts?

Also, any help is appreciated.

1 Like

it is possible but you would have to implement the physics in the game yourself

Yes! It is completely possible. I’ve been looking into doing something like this for a long time. This article covers most of the things you will need to know (It’s made for C++ but all the same concepts apply):

1 Like

I’ve had thoughts about something like this before, and i present to you 2 solutions:

  • Create your own physics engine (most obvious but tedious option), it is very possible with lua but you gotta understand how to code a physics engine, which requires alot of knowledge.
  • Have 3d physics bodies that have an axis lock to simulate 2d physics on the already existing 3d physics engine, this can be accomplished by locking it’s position on the X (or Z) axis with a BodyVelocity or BodyPosition (preferably the second because it will automatically correct any errors), and locking it’s rotation with an AlignOrientation (RigidityEnabled = true). A pretty hacky solution, but the easiest, and by doing this you get to inherit all of the roblox physics engine’s cool features such as constraints and assemblies.

in some ways the 2nd option is 2.5D but if you make everything flat and not wide at all you can make it look completely 2D
also there are games that could look like earthbound to be made to look 2D

1 Like