Motor Joints

This Example is using the Phaser Box2D Plugin.


/*
 *    Please wait, loading source from GitHub ...
 *
 *                                                         __
 *       ________              ________              _____/\_\
 *      /\       \            /\   __  \            /\   / / /
 *     /  \       \          /  \  \_\  \        __/_ \  \/_/ \
 *    /    \_______\        / /\ \_______\      /\___\ \_______\
 *    \    /       /        \ \/ /  __   /      \/___/ /  __   /
 *     \  /       /          \  /  /_/  /          \  /  /\ \ /
 *      \/_______/            \/_______/            \/___\ \_\
 *                                                        \/_/
 *
 */

This example is for Phaser 2 / CE

View the Phaser 3 Examples here.

View the code for this example:
//github.com/photonstorm/phaser-examples/blob/master/examples/box2d/motor joints.js.

Add the full power of Box2D Physics to your Phaser 2 games
  • User Friendly API
  • Fully Documented
  • Getting Started Guide
  • 90 Code Examples
  • Ropes, Springs, Joints and More
  • For Phaser 2 / CE only
Buy Now
$5 was $50

Download

Get the source and assets for every Phaser example from the Phaser Examples GitHub repository.

With literally hundreds of pieces of source code this is an invaluable resource to have available locally.

Online Code Editor

The Phaser Sandbox allows you to code games in your browser without having to download or install anything.

The powerful editor features Phaser code assists, JavaScript snippets and lots of the features you've come to love in editors like Sublime and Brackets.