Pass:cone

Edit

Draws a cone.




Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the base of the cone.
ynumber0 The y coordinate of the center of the base of the cone.
znumber0 The z coordinate of the center of the base of the cone.
radiusnumber1 The radius of the cone.
lengthnumber1 The length of the cone.
anglenumber0 The rotation of the cone around its rotation axis, in radians.
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.
segmentsnumber64 The number of segments in the cone.

Returns

Nothing

Arguments

NameTypeDefaultDescription
positionVec3 The position of the center of the base of the cone.
scaleVec3 The size of the cone (x and y scale the radius, z is the length).
orientationQuat The orientation of the cone.
segmentsnumber64 The number of segments in the cone.

Returns

Nothing

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the cone.
segmentsnumber64 The number of segments in the cone.

Returns

Nothing

Notes

The local origin is at the center of the base of the cone, and the negative z axis points towards the tip.

See also