Problem I was inspired by this to write a graphic snow animation in Java/Processing. It works great, but it has […]

# Tag: physics

## Processing.js particle system

Problem After about half an hour of fooling around with Processing.js/JavaScript, I got this fairly decent particle system set up: […]

## Roll-a-ball controller

Problem I’ve been toying around with Unity 5 lately, and in an effort to start making an actual game, I’ve […]

## Simulating gravitational attraction between bodies – follow up

Problem I’ve decided to revisit a chunk of code I wrote a while back, and see what I could do […]

## Calculate next position and velocity after “bounce”

Problem Intro and code I have the following function that calculates an object’s “next” position and velocity (in 1 dimension) […]

## Calculating an object’s stopping distance

Problem I’m trying to smooth the movement of a cursor which has a set acceleration and max speed. I wrote […]

## Particle swarm optimization – follow-up

Problem This is a followup post to Particle Swarm Optimization. I wrote a script in Python for particle swarm optimization […]

## Making basic physics object class

Problem I’m creating a 2D game in JS, and I’ve made the generic class that all objects in the game […]

## Implementation of Point, Velocity and Acceleration in Haskell

Problem I’m trying to implement point, velocity and acceleration types. They should be connected by some derive function which: takes […]

## Calculate supporting forces of a simply supported beam

Problem The program uses a very simple algorithm to calculate the supporting forces of a simply supported beam. I’d like […]

- 1
- 2