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