Fixed minor bug.
This commit is contained in:
Vendored
+3
-2
@@ -3218,8 +3218,9 @@
|
|||||||
if (delta != null) {
|
if (delta != null) {
|
||||||
this.addVelocity(delta);
|
this.addVelocity(delta);
|
||||||
let alpha = delta.rotate;
|
let alpha = delta.rotate;
|
||||||
if (this.maxRotationPerStep != null) {
|
if (this.maxRotation != null) {
|
||||||
if (Math.abs(alpha) > this.maxRotationPerStep) {
|
if (Math.abs(alpha) > this.maxRotation) {
|
||||||
|
console.log("limited rotation");
|
||||||
alpha = 0;
|
alpha = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+3
-2
@@ -6385,8 +6385,9 @@
|
|||||||
if (delta != null) {
|
if (delta != null) {
|
||||||
this.addVelocity(delta);
|
this.addVelocity(delta);
|
||||||
let alpha = delta.rotate;
|
let alpha = delta.rotate;
|
||||||
if (this.maxRotationPerStep != null) {
|
if (this.maxRotation != null) {
|
||||||
if (Math.abs(alpha) > this.maxRotationPerStep) {
|
if (Math.abs(alpha) > this.maxRotation) {
|
||||||
|
console.log("limited rotation");
|
||||||
alpha = 0;
|
alpha = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -351,8 +351,9 @@ export class AbstractScatter extends Throwable {
|
|||||||
if (delta != null) {
|
if (delta != null) {
|
||||||
this.addVelocity(delta)
|
this.addVelocity(delta)
|
||||||
let alpha = delta.rotate
|
let alpha = delta.rotate
|
||||||
if (this.maxRotationPerStep != null) {
|
if (this.maxRotation != null) {
|
||||||
if (Math.abs(alpha) > this.maxRotationPerStep) {
|
if (Math.abs(alpha) > this.maxRotation) {
|
||||||
|
console.log("limited rotation")
|
||||||
alpha = 0
|
alpha = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user