Document toolboxDocument toolbox

2023.1.1344.2 Convex Ellipse Generator



Overview

Creates an ellipse of given radii and rotation on an game object. With the ability to only create part of that ellipse


Where to find

And the mono behavior variant can be found under Mechanics > Collider Generators > Conus Ellipse or by clicking on game object going to Add Component and adding a Convex Ellipse Collider Generator.


Feature Layout

Radii

The radii of the ellipse in units.

Tessellation

The amount the ellipse is tessellated.

Minimum Percentage Main Ellipse

Start percentage of partial ellipse.

Maximum Percentage Main Ellipse

End percentage of partial ellipse.

Minimum Percentage Ellipse Circles

Start percentage of partial ellipse circles.

Maximum Percentage Ellipse Circles

End percentage of partial ellipse circles.

Mesh Name Prefix

The prefix added to the mesh name (if empty standard name for mesh taken).

(Re)Generate Collider

(Re)Generates the ellipse from given values.

Store Collider

Button to press if want to store the created collider in Unity project.


How to use

 

Inspector:

  1. Add Convex Ellipse Collider Generator to game object.

  2. Set the local radii and tessellation.

  3. Press (Re)Generate Collider. This will create a mesh filter and collider to the object to put the conus in. If the gameobject already has a mesh filter a child object will be made with the conus.

  4. Press Store Collider if want to save the ellipse in Unity project.

Ellipse mesh is stored in Resources/Colliders folder

Prespective Documentation