Skip to content

CreateCone

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

CreateCone

CreateCone:Int32 segments:Int32=8, solid:Int32=1, parent:Int32=0
Parameter Mode Type Default Description
segments In Int32 8 Detail of the cone, 3 to 100. Defaults to 8.
solid In Int32 1 1 for a cone with a base, 0 for an open one. Defaults to 1.
parent In Int32 0 Entity the cone follows, or 0 for none. Defaults to 0.

Returns: The handle of the new cone.

Description

Creates a cone with a base radius of 1 and its tip pointing up the Y axis. With solid set to 0 the base is left open. 4 segments make a pyramid and 16 looks smooth. Valid values are 3 to 100.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
PositionEntity camera, 0, 2.5, -8
RotateEntity camera, 18, 0, 0
light = CreateLight()
RotateEntity light, 45, 45, 0
pyramid = CreateCone(4)
PositionEntity pyramid, -2.4, 0, 0
EntityColor pyramid, 240, 200, 80
smooth = CreateCone(24)
EntityColor smooth, 120, 200, 240
round = CreateCone(8)
PositionEntity round, 2.4, 0, 0
EntityColor round, 240, 120, 160
RenderWorld
Flip
WaitKey

Media

CreateCone

Related Commands

CreateCube, CreateCylinder, CreateMesh, CreateMirror, CreatePlane, CreateSphere

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally