Module SimpleRope-PIXI.Impl
let create: texture:PIXI.Texture.t => points:array(PIXI.Point.t) => ?textureScale:float => unit => Js.t(_t);creates new simple rope
- parameter texture
The texture to use on the rope.
- parameter points
An array of PIXI.Point objects to construct this rope.
- parameter textureScale
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 streched instead.
let getAutoUpdate: Js.t(_t) => bool;re-calculate vertices by rope points each frame
let setAutoUpdate: Js.t(_t) => bool => unit;re-calculate vertices by rope points each frame