Skip to content

Commit

Permalink
add missing this.isKinematic = false to the body setup example
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Aug 16, 2023
1 parent c59364f commit 7809463
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderable/renderable.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default class Renderable extends Rect {
* this.body.setMaxVelocity(3, 15);
* this.body.setFriction(0.4, 0);
* this.body.force.set(3, 0);
* this.isKinematic = false;
*
* // set the display to follow our position on both axis
* me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);
Expand Down

0 comments on commit 7809463

Please sign in to comment.