cone

fun ShapeRenderer.cone(position: Vector3, radius: Float, height: Float)

See ShapeRenderer.cone. Estimates the number of segments needed for a smooth cone.

Parameters

position

supplies x, y and z parameters.

radius

radius of the rendered cone.

height

height of the rendered cone.


fun ShapeRenderer.cone(position: Vector3, radius: Float, height: Float, segments: Int)

See ShapeRenderer.cone.

Parameters

position

supplies x, y and z parameters.

radius

radius of the rendered cone.

height

height of the rendered cone.

segments

amount of segments used to render the cone.