A reference to the Scene this Arcade Physics instance belongs to.
A reference to the Scene.Systems this Arcade Physics instance belongs to.
A reference to the Arcade Physics World.
Creates a new physics Body with the given position and size.
This Body is not associated with any Game Object, but still exists within the world and can be tested for collision, have velocity, etc.
The horizontal position of this Body in the physics world.
The vertical position of this Body in the physics world.
Optionalwidth: numberThe width of the Body in pixels. Cannot be negative or zero. Default 64.
Optionalheight: numberThe height of the Body in pixels. Cannot be negative or zero. Default 64.
Creates a new Arcade Physics Collider object.
The first object to check for collision.
The second object to check for collision.
OptionalcollideCallback: ArcadePhysicsCallbackThe callback to invoke when the two objects collide.
OptionalprocessCallback: ArcadePhysicsCallbackThe callback to invoke when the two objects collide. Must return a boolean.
OptionalcallbackContext: anyThe scope in which to call the callbacks.
Destroys this Factory.
Adds an Arcade Physics Body to the given Game Object.
A Game Object.
OptionalisStatic: booleanCreate a Static body (true) or Dynamic body (false). Default false.
Creates a Physics Group object. All Game Objects created by this Group will automatically be dynamic Arcade Physics objects.
Optionalchildren: GameObject[] | GroupCreateConfig | PhysicsGroupConfigGame Objects to add to this group; or the config argument.
Optionalconfig: GroupCreateConfig | PhysicsGroupConfigSettings for this group.
Creates a new Arcade Image object with a Dynamic body.
The horizontal position of this Game Object in the world.
The vertical position of this Game Object in the world.
The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
Optionalframe: string | numberAn optional frame from the Texture this Game Object is rendering with.
Creates a new Arcade Physics Collider Overlap object.
The first object to check for overlap.
The second object to check for overlap.
OptionalcollideCallback: ArcadePhysicsCallbackThe callback to invoke when the two objects collide.
OptionalprocessCallback: ArcadePhysicsCallbackThe callback to invoke when the two objects collide. Must return a boolean.
OptionalcallbackContext: anyThe scope in which to call the callbacks.
Creates a new Arcade Sprite object with a Dynamic body.
The horizontal position of this Game Object in the world.
The vertical position of this Game Object in the world.
The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.
Optionalframe: string | numberAn optional frame from the Texture this Game Object is rendering with.
Creates a new static physics Body with the given position and size.
This Body is not associated with any Game Object, but still exists within the world and can be tested for collision, etc.
The horizontal position of this Body in the physics world.
The vertical position of this Body in the physics world.
Optionalwidth: numberThe width of the Body in pixels. Cannot be negative or zero. Default 64.
Optionalheight: numberThe height of the Body in pixels. Cannot be negative or zero. Default 64.
Creates a Static Physics Group object. All Game Objects created by this Group will automatically be static Arcade Physics objects.
Optionalchildren: GameObject[] | GroupConfig | GroupCreateConfigGame Objects to add to this group; or the config argument.
Optionalconfig: GroupConfig | GroupCreateConfigSettings for this group.
Creates a new Arcade Image object with a Static body.
The horizontal position of this Game Object in the world.
The vertical position of this Game Object in the world.
The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
Optionalframe: string | numberAn optional frame from the Texture this Game Object is rendering with.
Creates a new Arcade Sprite object with a Static body.
The horizontal position of this Game Object in the world.
The vertical position of this Game Object in the world.
The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
Optionalframe: string | numberAn optional frame from the Texture this Game Object is rendering with.
The Arcade Physics Factory allows you to easily create Arcade Physics enabled Game Objects. Objects that are created by this Factory are automatically added to the physics world.