Physics Engine (Kinda)
Physics engine, still in progress.
Usage:
So, all you have to do is the following.
Click and drag and then release to launch a box.
The longer you hold down the mouse, the more mass it has.
The phyiscs are all homebrew and pretty simple.
Please vote if you like it, and bananas are welcome payment.
Any questions? Ask!
If you do make collisions then you will have to make the size have a max because if you would make the shape the size of the work area then make another shape it will just glitch badly. Sorry if i explained it bad if you dont get what i'm saying ask me.
dude in style.css just add a bit of color with
main{
background-color: color
}
Something tells me that you could make a really fun random generator with this.
gravity is gone
awesome :O
how do you play?
:(
i like it, this is fun.
Aww, no collisions? That's where all the madness fun happens!
correction: collisions with polygons, that's where all the fun begins :D
So no, I keep my original statement.
run some physics depending on their velocities to determine how much they're offset
This is the difficult part, because having multiple circles collide at once can get really glitchy.
There could be no border collision.
- Code that
- Actually get the balls to hit each other cause they're so damn small
(Also the small thing isn't really an issue.)
O/o
This is amazing!
Though maybe add a cap to the box size, I accidentally made one bigger than the canvas. :D
yeah
@BD103sad mobile noises seems legit! One bug though, I make a tiny (barely clicked) dot and it stays in place. Otherwise cool p5 project, always great to see someone else use that amazing library xD.
cool teach me your ways
the things are so bouncy have an option to make bouncing less (and also recursive calculations for collisions between the things!)
pOg