|
@@ -133,7 +133,7 @@
|
|
|
|
|
|
function generateTarget() {
|
|
function generateTarget() {
|
|
|
|
|
|
- // generate a random points on a sphere
|
|
|
|
|
|
+ // generate a random point on a sphere
|
|
|
|
|
|
spherical.theta = Math.random() * Math.PI * 2;
|
|
spherical.theta = Math.random() * Math.PI * 2;
|
|
spherical.phi = Math.acos( ( 2 * Math.random() ) - 1 );
|
|
spherical.phi = Math.acos( ( 2 * Math.random() ) - 1 );
|