Method | Description | |
---|---|---|
GenerateTriangularPieces ( GameObject source, int extraPoints, int subshatterSteps, Material mat = null ) : List |
||
GenerateVoronoiPieces ( GameObject source, int extraPoints, int subshatterSteps, Material mat = null ) : List |
Method | Description | |
---|---|---|
calcPivotCenterDiff ( GameObject target ) : Vector3 |
calculates the distance between the targets pivot and it's actual center
|
|
calcPolyColliderPoints ( List |
||
calcTriangles ( Voronoi, region ) : int[] | ||
calcUV ( Vector3 vertices, |
||
calcUV ( Vector3 vertices, SpriteRenderer sRend, Transform sTransform ) : Vector2[] |
calculates the UV coordinates for the given vertices based on the provided Sprite
|
|
calcVerts ( Voronoi, region ) : Vector3[] | ||
centerMeshPivot ( GameObject target, Vector3 diff ) : void |
Sets the pivot of the target object to it's center
|
|
createFragmentMaterial ( GameObject source ) : Material | ||
generateTriangularPiece ( GameObject source, List |
||
generateVoronoiPiece ( GameObject source, List |
||
getPoints ( |
generates a list of points from a box collider
|
|
getPoints ( |
generates a list of points from a polygon collider
|
|
getRect ( GameObject source ) : Rect |
generates a rectangle based on the rendering bounds of the object
|
|
getRect ( List |
||
getRendererPoints ( GameObject source ) : List |
||
getUVRange ( Vector2 &min, Vector2 &max, Vector2 uv ) : void | ||
scaleRange ( float target, float oldMin, float oldMax, float newMin, float newMax ) : float | ||
setFragmentMaterial ( GameObject newSprite, GameObject source ) : void |
assigns a new material for a fragment
|
public static GenerateTriangularPieces ( GameObject source, int extraPoints, int subshatterSteps, Material mat = null ) : List |
||
source | GameObject | |
extraPoints | int | |
subshatterSteps | int | |
mat | Material | |
return | List |
public static GenerateVoronoiPieces ( GameObject source, int extraPoints, int subshatterSteps, Material mat = null ) : List |
||
source | GameObject | |
extraPoints | int | |
subshatterSteps | int | |
mat | Material | |
return | List |