Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/jsm/misc/MD2CharacterComplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ class MD2CharacterComplex {
this.backAcceleration = 600;

/**
* The character's front decceleration.
* The character's front deceleration.
*
* @type {number}
* @default 600
*/
this.frontDecceleration = 600;
this.frontDeceleration = 600;

/**
* The character's angular speed.
Expand Down Expand Up @@ -684,7 +684,7 @@ class MD2CharacterComplex {
if ( this.speed > 0 ) {

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

} else {

Expand Down