Phaser API Documentation

  Version: 
resetFlags([clear])

Description:

Prepares the Body for a physics step by resetting the wasTouching, touching and blocked states.

This method is only called if the physics world is going to run a step this frame.

Parameters:

name type arguments Default description
clear boolean <optional> false

Set the wasTouching values to their defaults.

Since: 3.18.0