Simple Physics. Translating from Lua (the language in the Codea app) into Java

Simon came up with an idea to translate a physics visualization from the Codea app (using a language called Lua) into Processing (Java) by applying Box2D. The first two videos … Continue reading Simple Physics. Translating from Lua (the language in the Codea app) into Java

Simon translated Attraction and Repulsion Forces Coding Challenge into Java

Simon translated part of the Attraction and Repulsion Forces Coding Challenge from JavaScript into Processing (Java). In the first video below he explains the formulas for attraction and repulsion forces: … Continue reading Simon translated Attraction and Repulsion Forces Coding Challenge into Java

MotorAttractor with Box2D in Processing (Java)

In this project Simon combined two exercises and one example from Daniel Shiffman’s Nature of Code book, Chapter 5 – Physic Libraries. The specific physics library used here is Box2D. … Continue reading MotorAttractor with Box2D in Processing (Java)

Nearest Neighbour Coding Challenge. Euclidean Distance.

The notes above are from a couple days ago when Simon was trying to explain to me, where the formula for calculating similarity s = 1/1+c comes from. He linked it … Continue reading Nearest Neighbour Coding Challenge. Euclidean Distance.

Polar Distribution to create clusters

Simon has written a code about using Polar Distribution to create clusters in p5.js (JavaScript). The code is available online at: https://alpha.editor.p5js.org/simontiger/sketches/Sy1CX71xZ The little particles are attracted to one another but don’t … Continue reading Polar Distribution to create clusters

Polar Roses in JavaScript

Simon created an engine that uses trigonometrical (polar coordinates) formulas to produce beautiful roses. He reproduced the code originally created by Daniel Shiffman from memory and searched for the formulas … Continue reading Polar Roses in JavaScript