Phaser API Documentation

  Version: 

Description:

An array containing the points data for this Rope.

Each point should be given as a Vector2Like object (i.e. a Vector2, Geom.Point or object with public x/y properties).

The point coordinates are given in local space, where 0 x 0 is the start of the Rope strip.

You can modify the contents of this array directly in real-time to create interesting effects. If you do so, be sure to call setDirty after modifying this array, so that the vertices data is updated before the next render. Alternatively, you can use the setPoints method instead.

Should you need to change the size of this array, then you should always use the setPoints method.

Since: 3.23.0