Skip to content

Commit f06cc7d

Browse files
s-rigaudSamuel Rigaud
andauthored
MD2CharacterComplex: fix frontDeceleration attribute name (#30817)
Co-authored-by: Samuel Rigaud <[email protected]>
1 parent aebc1f1 commit f06cc7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/jsm/misc/MD2CharacterComplex.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ class MD2CharacterComplex {
7878
this.backAcceleration = 600;
7979

8080
/**
81-
* The character's front decceleration.
81+
* The character's front deceleration.
8282
*
8383
* @type {number}
8484
* @default 600
8585
*/
86-
this.frontDecceleration = 600;
86+
this.frontDeceleration = 600;
8787

8888
/**
8989
* The character's angular speed.
@@ -684,7 +684,7 @@ class MD2CharacterComplex {
684684
if ( this.speed > 0 ) {
685685

686686
const k = exponentialEaseOut( this.speed / this.maxSpeed );
687-
this.speed = MathUtils.clamp( this.speed - k * delta * this.frontDecceleration, 0, this.maxSpeed );
687+
this.speed = MathUtils.clamp( this.speed - k * delta * this.frontDeceleration, 0, this.maxSpeed );
688688

689689
} else {
690690

0 commit comments

Comments
 (0)