Interface: MeshRopeOptions

MeshRopeOptions

Constructor options used for MeshRope instances.

const meshRope = new MeshRope({
   texture: Texture.from('snake.png'),
   points: [new Point(0, 0), new Point(100, 0)],
   textureScale: 0,
});
Properties:
Name Type Description
points PointData[]

An array of points that determine the rope.

texture Texture

The texture to use on the rope.

textureScale number

Rope texture scale, if zero then the rope texture is stretched. Positive values scale rope texture keeping its aspect ratio. You can reduce alpha channel artifacts by providing a larger texture and downsampling here. If set to zero, texture will be stretched instead.

See:

Extends

  • Omit

Members

points PointData[]

An array of points that determine the rope.

texture Texture

The texture to use on the rope.

textureScale number

Rope texture scale, if zero then the rope texture is stretched. Positive values scale rope texture keeping its aspect ratio. You can reduce alpha channel artifacts by providing a larger texture and downsampling here. If set to zero, texture will be stretched instead.