APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.utils.shapebuilders

public Class ArrowShapeBuilder

extends BaseShapeBuilder
Class Inheritance
Imports
com.badlogic.gdx.graphics.g3d.utils.MeshPartBuilder, com.badlogic.gdx.math.Matrix4, .Vector3

Helper class with static methods to build arrow shapes using MeshPartBuilder.
Author
xoppa

Field Summary

Inherited from com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder:
matTmp1tmpColor0tmpColor1tmpColor2tmpColor3tmpColor4tmpV0tmpV1tmpV2tmpV3tmpV4tmpV5tmpV6tmpV7vertTmp0vertTmp1vertTmp2vertTmp3vertTmp4vertTmp5vertTmp6vertTmp7vertTmp8

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
build(MeshPartBuilder builder, float
source x
x1
,
float
source y
y1
,
float
source z
z1
,
float
destination x
x2
,
float
destination y
y2
,
float
destination z
z2
,
float
is the height of the cap in percentage, must be in (0,1)
capLength
,
float
is the percentage of stem diameter compared to cap diameter, must be in (0,1]
stemThickness
,
int
the amount of vertices used to generate the cap and stem ellipsoidal bases
divisions
)

Build an arrow

Inherited from com.badlogic.gdx.graphics.g3d.utils.shapebuilders.BaseShapeBuilder:
freeAllobtainM4obtainV3

Constructor Detail

ArrowShapeBuilderback to summary
public ArrowShapeBuilder()

Method Detail

buildback to summary
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:float

source x

y1:float

source y

z1:float

source z

x2:float

destination x

y2:float

destination y

z2:float

destination z

capLength:float

is the height of the cap in percentage, must be in (0,1)

stemThickness:float

is the percentage of stem diameter compared to cap diameter, must be in (0,1]

divisions:int

the amount of vertices used to generate the cap and stem ellipsoidal bases