addSpring(spring) → {Phaser.Physics.P2.Spring}
Adds a Spring to the world.
Parameters
Name | Type | Description |
---|---|---|
spring | Phaser.Physics.P2.Spring | p2.LinearSpring | p2.RotationalSpring | The Spring to add to the World. |
Returns
The Spring that was added.
- Source code: physics/p2/World.js (Line 931)
Please login to continue.