matthias-research / pages

My web page containing all the demos from my youtube channel "Ten Minute Physics" www.youtube.com/c/TenMinutePhysics
651 stars 134 forks source link

Inconsistency in 02-cannonball3d.html #6

Open Mokona opened 3 years ago

Mokona commented 3 years ago

Hello,

in this file, initPhysics() and Ball constructor are prepared to receive a "scene" parameter. But they use the global threeScene variable instead.

For consistency, the local parameter should either go, or be used and initPysics() called with the threeScene argument.

Regards