2023.1.1571.2 Convex Polyhedron Generator
Overview
Creates an mesh on top and bottom polyhedron on an game object.
Where to find
it can be found under Mechanics > Collider Generators > Polyhedron Generator or by clicking on game object going to Add Component and adding a Convex Polyhedron Generator.
Feature Layout
Make Normals for Mesh | When checked the normals of created mesh are calculated (generated by unity if unchecked). |
Inverse Normals Top Bottom Mesh | When checked inverse the calculated normals of bottom and top cap of polyhedron. |
Inverse Normals Side Mesh | When checked inverse the calculated normals of side of polyhedron. |
Edit Mode | When checked allows you to edit the polyhedron in the scene view. |
Scene Top Color | The color of the top polyhedron drawn in scene. |
Scene Mid Color | The color of the lines between top and bottom polyhedron drawn in scene. |
Scene Bottom Color | The color of the bottom polyhedron drawn in scene. |
Number of Points | The number of points of the top and bottom cap polyhedron. |
Scaling Tool | The type of tool to use to move the polyhedron points
|
Allow Skewing | When checked the lines are able to skew when moving. |
Target Normal Offset | The amount of distance between top and bottom cap when using move buttons |
Move Top To Bottom | Moves the top the Target Normal Offset above the bottom. |
Move Bottom To Top | Moves the bottom the Target Normal Offset below the top. |
Points Top | The points and lines of the top polyhedron. |
Points Bottom | The points and lines of the bottom polyhedron. |
Add Point | Add point to top and bottom polyhedron. |
Normal Offset Alignment | The amount offset in units of the alignment. |
Align Bottom To Top | Puts all the points of bottom on top. |
Align Top To Bottom | Puts all the points of top on bottom. |
Mesh Name Prefix | Prefix added to mesh name (if empty standard name used). |
Reset Points | Resets polyhedron to start conditions. |
(Re)Generated Mesh | Generates mesh created by top and bottom polyhedron. |
How to use
Add Convex Polyhedron Generator to game object.
Use the gizmo’s in the scene view to set the polyhedron shape you want to generate.
Press Generate Collider. This will create a mesh filter and collider to object to put the polyhedron in. If already has a mesh filter an object will be made below it and their the polyhedron is stored.
Prespective Documentation