Hi everyone!
I have one static body - blue rectangle, and two boxes with dynamic bodies. The first box falls to the floor and stands still, while the second (upper) box falls to the first one and perform “micro jumps” - the property box.body.touching.down become true and false in cycle and debug system draws green small down velocity vector.
*Boxes must be draggable by mouse, so i make it with dynamic body.
Can anyone gime me a hint why this happends? How to eliminate this effect?
Here is the main code:
let floor = this.physics.add.existing(this.add.rectangle(0, this.game.config.height*0.95, this.game.config.width, this.game.config.height*0.05).setOrigin(0, 0), true);
this.box1 = this.physics.add.image(this.game.config.width/2, this.game.config.height*0.66, 'box');
this.box2 = this.physics.add.image(this.game.config.width/2, this.game.config.height*0.33, 'box');
this.physics.add.collider([this.box1, this.box2], floor);
this.physics.add.collider(this.box1, this.box2);
Thanx!