Physics.P2.GearConstraint

Class: Phaser.Physics.P2.GearConstraint

Constructor

new GearConstraint(world, bodyA, bodyB, angle, ratio)

Connects two bodies at given offset points, letting them rotate relative to each other around this point.

Parameters
Name Type Argument Default Description
world Phaser.Physics.P2

A reference to the P2 World.

bodyA 登录查看完整内容