YACC YACC
YACC YACC
Made with ❤️ for Unity

Search Results for

    Class WheelSkidmarkRenderer

    Generates persistent skidmarks on surfaces when wheels slip. Creates mesh-based skidmarks that stick to terrain/roads instead of using trail renderers.

    Inheritance
    object
    WheelSkidmarkRenderer
    Namespace: YACC.Controllers
    Assembly: .dll
    Syntax
    public class WheelSkidmarkRenderer : MonoBehaviour
    Remarks

    Skidmarks are drawn using procedural mesh generation and stick to the surface geometry.

    Features:

    • Surface-conforming (not camera-facing like trails)
    • Customizable texture per vehicle
    • Opacity fades based on slip intensity
    • No mid-air marks (only on grounded wheels)
    • Automatic cleanup of old marks

    Fields

    Name Description
    fadeOutTime

    How long skidmarks persist before fading.

    markWidth
    maxOpacity

    Maximum opacity of skidmark.

    maxSegments

    Maximum number of skidmark segments to keep.

    minOpacity

    Minimum opacity for light skids.

    segmentSpacing

    Minimum distance between skidmark segments.

    skidmarkColor

    Color tint for the skidmark.

    skidmarkTexture
    slipThreshold
    surfaceOffset

    Offset above surface to prevent z-fighting.

    © Deimos Industries. All rights reserved.