Physics.P2.RotationalSpring
Class: Phaser.Physics.P2.RotationalSpring
Constructor
new RotationalSpring(world, bodyA, bodyB, restAngle, stiffness, damping)
Creates a rotational spring, connecting two bodies. A spring can have a resting length, a stiffness and damping.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
world | Phaser.Physics.P2 | A reference to the P2 World. | ||
bodyA
|