Documentation

Page contents

Updated

Generate PDF from page.

Primitive Cone Behavior

Files: CGFPrimitiveConeBehavior.cs

Path: "CGF/Systems/ObjectMesh/Primitives"

Description

Behavior that allows the associated gameobject to creating primitive 3D cone meshes

Reference

  • Generate Caps – Determines whether to generate caps for the cone.
  • Generate Normals – Determines whether normals should be generated for shading.
  • Generate UVs – Determines whether UV coordinates should be generated for texturing.
  • Height – height of the cone.
  • Invert – Specifies whether to invert the mesh orientation.
  • Radius 1 – radius of the base of the cone.
  • Radius 2 – radius of the top of the cone.
  • Sides – Number of sides used to approximate the circular base.

Use

Add this component to the GameObject that should own the behavior.
Configure the inspector fields listed in Reference and assign the required scene or asset references before entering Play Mode.