Package

io.scalajs.dom.html.phaser

physics

Permalink

package physics

Visibility
  1. Public
  2. All

Type Members

  1. class Arcade extends Object

    Permalink

    The Arcade Physics world.

    The Arcade Physics world. Contains Arcade Physics related collision, overlap and motion methods.

    Annotations
    @RawJSType() @native() @JSName( "Phaser.Physics.Arcade" )
    See also

    http://phaser.io/docs/2.6.2/Phaser.Physics.Arcade.html

  2. class Box2D extends Object

    Permalink

    Box2D

    Box2D

    Annotations
    @RawJSType() @native()
  3. class Chipmunk extends Object

    Permalink

    Chipmunk

    Chipmunk

    Annotations
    @RawJSType() @native()
  4. class Matter extends Object

    Permalink

    Matter

    Matter

    Annotations
    @RawJSType() @native()
  5. class Ninja extends Object

    Permalink

    Ninja Physics.

    Ninja Physics. The Ninja Physics system was created in Flash by Metanet Software and ported to JavaScript by Richard Davey.

    It allows for AABB and Circle to Tile collision. Tiles can be any of 34 different types, including slopes, convex and concave shapes. * It does what it does very well, but is ripe for expansion and optimisation. Here are some features that I'd love to see the community add:

    • AABB to AABB collision
    • AABB to Circle collision
    • AABB and Circle 'immovable' property support
    • n-way collision, so an AABB/Circle could pass through a tile from below and land upon it.
    • QuadTree or spatial grid for faster Body vs. Tile Group look-ups.
    • Optimise the internal vector math and reduce the quantity of temporary vars created.
    • Expand Gravity and Bounce to allow for separate x/y axis values.
    • Support Bodies linked to Sprites that don't have anchor set to 0.5

    Feel free to attempt any of the above and submit a Pull Request with your code! Be sure to include test cases proving they work.

    Annotations
    @RawJSType() @native() @JSName( "Phaser.Physics.Ninja" )
    See also

    http://phaser.io/docs/2.6.2/Phaser.Physics.Ninja.html

  6. class P2 extends Object

    Permalink

    This is your main access to the P2 Physics World.

    This is your main access to the P2 Physics World. From here you can create materials, listen for events and add bodies into the physics simulation.

    Annotations
    @RawJSType() @native() @JSName( "Phaser.Physics.P2" )

Value Members

  1. object Arcade extends Object

    Permalink

    Arcade Singleton

    Arcade Singleton

    Annotations
    @native() @JSName( "Phaser.Physics.Arcade" )
  2. object P2 extends Object

    Permalink
    Annotations
    @native() @JSName( "P2" )
  3. package arcade

    Permalink
  4. package ninja

    Permalink
  5. package p2

    Permalink

Ungrouped