Methods
-
Blockly.JavaScript['start_physics']()
-
Code Equivalent:
undefined
-
enable_arcade_phy()
-
Parameters:
Type Description Code Equivalent:
undefined
-
enable_arcade_physics_for_object(object)
-
Adds a physics body to the object. This allows the object to collide with other physics bodies and use other physics functionality.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description object
object to enable physics on
Code Equivalent:
game.physics.arcade.enable(object);
-
enable_body_group()
-
Parameters:
Type Description Code Equivalent:
group.enableBody = true;
-
enable_body_group(group)
-
Enables physics body for all objects in the group. This allows the objects to collide with other physics bodies and use other physics functionality.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description group
group to enable physics on
Code Equivalent:
group.enableBody = true;
-
start_arcade_physics()
-
Enables the Phaser Arcade phyiscs to be used in the game.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.physics.startSystem(Phaser.Physics.ARCADE);