NWH Wheel Controller 3D
Search Results for

    Show / Hide Table of Contents

    Class WheelControllerUtility

    Utility class providing helper methods for WheelController3D operations and mesh generation. Contains functions for procedural mesh creation and wheel-related calculations.

    Inheritance
    object
    WheelControllerUtility
    Namespace: NWH.WheelController3D
    Assembly: NWH.WheelController.dll
    Syntax
    public static class WheelControllerUtility

    Methods

    | Edit this page View Source

    CreateCylinderMesh(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.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics