A downloadable game for Windows

This a physics simulator containing hardbody collisions, springs, effectors, and gravity. Play around with it and have fun. One each grid square is 1 by 1.

Controls

  • Left click outside menu: spawn body/circle
  • Left click on menu: adjust parameters
  • Tab: hides menu
  • Spacebar: pause physics
  • Shift +Left click: spawn effector
  • ctrl+left click: spawn circle every frame(fps frame, not physics frame)
  • ctrl+shift + left click: spawn effector every frame(same as above)
  • start right click over a body, and still holding right click: selects that body
  • selected body + ctrl: provides a spring between the body and your cursor
  • selected body, stop holding right click over another body: adds a spring between the two bodies
  • Q: Sets all bodies (except for static) positions to center of the screen
  • W:Sets all velocities to 0
  • C: Frame buffer is not cleared out, solitaire win effect
  • Esc: closes the application

Menu definitions

Word or value in parenthesis is the default value for the parameter 

  • Body
    • Body type
      • Dynamic(default): body behaves normally
      • Kinematic: body only responds to collisions
      • Static: body doesn't not respond to anything and never moves
    • Radius(.5): the radius of new bodies
    • Mass(1): the mass of new bodies
    • Gravity(1): how much world gravity affects this body. Can be negative
    • Bounce(.9): how much energy is saved when collision occurs
    • Damping(.1): how quickly the body loses energy over time
    • Velocity(4): the magnitude of the initial velocity the body spawns in with
  • Spring
    • Stiffness(15): how much flexibility/give(or lack thereof) the spring has
    • Damping(.1): how quickly the spring loses energy over time
    • Length(2): the resting length of the spring
      • Auto Length(true): if on, when making a spring, the current distance between the bodies is the spring resting distance, If off, then Length is used instead.
  • Effector(all only affect bodies inside their radius)
    • Effector type
      • Gravitation(default): bodies attract other bodies, does not override world gravity
      • Point: bodies are attracted to the center of the effector
      • Area: bodies are pushed in the direction of angle
      • Drag: slows bodies down
    • Size(1.5) : the radius of the effector
    • Force(10): how strong the effector is
    • Angle(0): what direction Area pushes; 0 is right,90 is up, 180 is left 270 is down
  • FPS(60): how many physics frames happen per second. The more, the more accurate the simulation and vise versa
  • Gravity(-9.81): the world gravity that is applied to all bodies
  • Spring X(1): multiplier on all spring strength (excluding cursor)
  • Simulate(true): Whether the physics are ruining or not. Can also be toggled with spacebar
Published 5 days ago
StatusReleased
PlatformsWindows
AuthorOptimistic_Pillar
GenreSimulation
TagsPhysics
AI DisclosureAI Assisted, Code

Download

Download
Physics_Sim.zip 484 kB

Leave a comment

Log in with itch.io to leave a comment.