Class WheelControllerUtility
Utility class providing helper methods for WheelController3D operations and mesh generation. Contains functions for procedural mesh creation and wheel-related calculations.
Namespace: NWH.WheelController3D
Assembly: NWH.WheelController.dll
Syntax
public static class WheelControllerUtility
Methods
| Edit this page View SourceCreateCylinderMesh(int, float, float)
Creates a procedural cylinder mesh for wheel visualization. Generates vertices and triangles for a cylinder oriented along the X-axis.
Declaration
public static Mesh CreateCylinderMesh(int subdivisions, float height, float radius)
Parameters
| Type | Name | Description |
|---|---|---|
| int | subdivisions | Number of radial segments for the cylinder (higher = smoother) |
| float | height | Length of the cylinder along X-axis (wheel width) |
| float | radius | Radius of the cylinder (wheel radius) |
Returns
| Type | Description |
|---|---|
| Mesh | Generated Unity Mesh with cylinder geometry |
Remarks
The generated mesh is oriented with X as the wheel axis, suitable for vehicle wheel representation. Higher subdivision counts create smoother cylinders but increase vertex count.