The width (i.e., thickness) of the rope.
An array of PIXI.Point objects to construct this rope.
Optional
textureScale: numberBy default the rope texture will be stretched to match rope length. If textureScale is positive this value will be treated as a scaling factor and the texture will preserve its aspect ratio instead. To create a tiling rope set baseTexture.wrapMode to PIXI.WRAP_MODES.REPEAT and use a power of two texture, then set textureScale=1 to keep the original texture pixel size. In order to reduce alpha channel artifacts provide a larger texture and downsample - i.e. set textureScale=0.5 to scale it down twice.
Readonly
_widthThe width (i.e., thickness) of the rope.
A map of renderer IDs to webgl VAOs
Number of instances in this geometry, pass it to GeometrySystem.draw()
.
1
Whether the geometry is instanced.
An array of points that determine the rope.
Count of existing (not destroyed) meshes that reference this geometry.
Readonly
textureRope texture scale, if zero then the rope texture is stretched.
The width (i.e., thickness) of the rope.
Adds an attribute to the geometry
Note: stride
and start
should be undefined
if you dont know them, not 0!
the name of the attribute (matching up to a shader)
the buffer that holds the data of the attribute . You can also provide an Array and a buffer will be created from it.
Optional
size: numberthe size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
Optional
normalized: booleanshould the data be normalized.
Optional
type: TYPESwhat type of number is the attribute. Check PIXI.TYPES to see the ones available
Optional
stride: numberHow far apart, in bytes, the start of each value is. (used for interleaving data)
Optional
start: numberHow far into the array to start reading values (used for interleaving data)
Optional
instance: booleanInstancing flag
Adds an index buffer to the geometry The index buffer contains integers, three for each triangle in the geometry, which reference the various attribute buffers (position, colour, UV coordinates, other UV coordinates, normal, …). There is only ONE index buffer.
Optional
buffer: number[] | IArrayBuffer | BufferThe buffer that holds the data of the index buffer. You can also provide an Array and a buffer will be created from it.
Static
mergeGenerated using TypeDoc
RopeGeometry allows you to draw a geometry across several points and then manipulate these points.
Example
Memberof
PIXI