Physics.P2.Spring

Class: Phaser.Physics.P2.Spring

Constructor

new Spring(world, bodyA, bodyB, restLength, stiffness, damping, worldA, worldB, localA, localB)

Creates a linear 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 登录查看完整内容