Class ArrowShapeBuilder
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
-
- com.badlogic.gdx.graphics.g3d.utils.shapebuilders.ArrowShapeBuilder
-
public class ArrowShapeBuilder extends BaseShapeBuilder
Helper class with static methods to build arrow shapes usingMeshPartBuilder
.
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
matTmp1, tmpColor0, tmpColor1, tmpColor2, tmpColor3, tmpColor4, tmpV0, tmpV1, tmpV2, tmpV3, tmpV4, tmpV5, tmpV6, tmpV7, vertTmp0, vertTmp1, vertTmp2, vertTmp3, vertTmp4, vertTmp5, vertTmp6, vertTmp7, vertTmp8
-
-
Constructor Summary
Constructors Constructor Description ArrowShapeBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
build(MeshPartBuilder builder, float x1, float y1, float z1, float x2, float y2, float z2, float capLength, float stemThickness, int divisions)
Build an arrow-
Methods inherited from class com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder
freeAll, obtainM4, obtainV3
-
-
-
-
Method Detail
-
build
public static void build(MeshPartBuilder builder, float x1, float y1, float z1, float x2, float y2, float z2, float capLength, float stemThickness, int divisions)
Build an arrow- Parameters:
x1
- source xy1
- source yz1
- source zx2
- destination xy2
- destination yz2
- destination zcapLength
- is the height of the cap in percentage, must be in (0,1)stemThickness
- is the percentage of stem diameter compared to cap diameter, must be in (0,1]divisions
- the amount of vertices used to generate the cap and stem ellipsoidal bases
-
-