speed up unlocked minoes
This commit is contained in:
parent
1abe7ef998
commit
7c091306cc
2
app.js
2
app.js
@ -211,7 +211,7 @@ const GRAVITY = -20
|
|||||||
class Mino extends THREE.Mesh {
|
class Mino extends THREE.Mesh {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(Mino.prototype.geometry)
|
super(Mino.prototype.geometry)
|
||||||
this.velocity = P(25-50*Math.random(), 25-50*Math.random(), 25-50*Math.random())
|
this.velocity = P(50-100*Math.random(), 50-100*Math.random(), 50-100*Math.random())
|
||||||
this.rotationAngle = P(Math.random(), Math.random(), Math.random()).normalize()
|
this.rotationAngle = P(Math.random(), Math.random(), Math.random()).normalize()
|
||||||
this.angularVelocity = 5-10*Math.random()
|
this.angularVelocity = 5-10*Math.random()
|
||||||
scene.add(this)
|
scene.add(this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user