Document toolboxDocument toolbox

2023.1.116.1 ConvexEllipseGenerator



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

The feature can be found under Utility > Mesh Tools > Create Shape.

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


Feature Layout

Will only describe Ellipse window.

Shape Type

Type of shape given to game objects.

  • Ellipse: Creates a ellipse of given radii for object.

  • Cube: Creates cube.

  • Cylinder: Creates cylinder.

Center

The center of the created ellipse in world space.

Local Up Direction

The direction the local up is in (in this direction the y radius will be drawn).

Tessellation

Amount the ellipse is tessellated.

Radii

The radii of the ellipse in units.

Create Shape

Button to press to add shape to selected game objects

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

Window:

  1. Select game objects want to given ellipse.

  2. Indicate where center of ellipse needs to be.

  3. Set local up direction to rotated the ellipse to right orientation.

  4. Set local radii of the ellipse.

  5. Set amount of tessellation.

  6. Press Create Shape. Now the selected objects with Mesh Filter will have their meshes replaced with ellipse and rest will have a Mesh Filter added and puts the ellipse into that.

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