All Questions
12
questions
3
votes
1
answer
78
views
Dynamical system animation framework
Introduction
I am developing a dynamical system simulation/animation framework, which
provides three abstract base classes, DynamicalSystem, ...
6
votes
1
answer
972
views
Golf Physics "Game"
Continuation of this post
I wrote a program in pygame that basically acts as a physics engine for a ball. You can hit the ball around and your strokes are counted, as well as an extra stroke for ...
6
votes
1
answer
484
views
Pong Game in JS
I am new to game development and took on the task to create a Pong replica due to my curiosity and interest in the field. I decided to write it in JavaScript because the game is not too labor ...
1
vote
1
answer
274
views
Closed particle system simulation in vanilla Javascript
I have ported my simulation from Java to vanilla Javascript. The most important aim was to keep the sum of all energies constant. I have this:
simulation.js
...
2
votes
0
answers
122
views
didSimulatePhysics to animate a ball, taking 45% of CPU
According to my time profiler this is taking 45% of my cpu usage: have tried to optimize, and someone on stack overflow -- recommended to post here. Time profiler says 99% of the time is spent on the ...
0
votes
1
answer
168
views
Calculating an object's stopping distance
I'm trying to smooth the movement of a cursor which has a set acceleration and max speed. I wrote this function to calculate the stopping distance of an object given its speed and acceleration, and it ...
3
votes
1
answer
728
views
Explosion animation plugin for a game
I have been writing a small particle plugin since I want to learn how physics works for games. Now I have tried to get this as clean as I possible could but It feels something is missing. Am I ...
6
votes
1
answer
4k
views
Java snow animation
I was inspired by this to write a graphic snow animation in Java/Processing. It works great, but it has some design issues.
The full project is here on github;
...
7
votes
1
answer
129
views
Animating a 2D particle "web"
I have written a small class to generate and animate one of those trendy particle webs. I plan to use this as the main background of my personal website, so naturally I'm concerned about the ...
10
votes
1
answer
339
views
Processing.js particle system
After about half an hour of fooling around with Processing.js/JavaScript, I got this fairly decent particle system set up:
...
6
votes
3
answers
1k
views
Bouncing ball simulation
I was fooling around with some maths and realized that I could use a parabola to represent a bouncing ball. So, naturally, I decided to make it in code.
...
17
votes
1
answer
4k
views
Bouncing stacking boxes
I'm not sure if it would be better to make the envelope into an extension of the Rectangle constructor.
The physics seem a bit dodgy, it works well most of the time, but sometimes the boxes overlap ...