Translating examples from The Nature of Code into Lua (Codea)

This morning Simon attempted to make a more difficult translation in the Codea app of an example from Daniel Shiffman’s book The Nature of Code (Java) into Lua. It concerned the Gravitational Attraction example … Continue reading Translating examples from The Nature of Code into Lua (Codea)

Playing with examples on Forces and Oscillation from The Nature of Code

Playing with examples from Chapter 3 of The Nature of Code, Oscillation, covering trigonometry and connecting it to forces. The examples included simple harmonic motion, angular velocity and waves, as … Continue reading Playing with examples on Forces and Oscillation from The Nature of Code

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)

Gravitational Attraction (World Generator in Java). Simon’s new own code!

Simon has come up with a new code of his own! It’s about gravitational attraction (particles attracted to targets or moons attracted to planets) and partially based upon the Box2D library … Continue reading Gravitational Attraction (World Generator in Java). Simon’s new own code!