Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Nition/UnitySkidmarks

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
July 24, 2020 22:14
December 4, 2019 14:17
January 18, 2021 10:33
June 8, 2021 10:19
May 10, 2017 22:27

Please note: This repository is no longer maintained.

UnitySkidmarks

A basic skidmark system intended for vehicles. Originally written for my game Scraps: Modular Vehicle Combat but intended to be general-purpose.

UnitySkidmarks is loosely based on a script from an old official Unity car tutorial, but with improved performance and zero garbage generation.

This repository comes with an example scene built with Unity 5.6, using Unity 5 standard assets for the vehicle and terrain.

Visualisation example.

The UnitySkidmarks folder is the only content required to make the system work on its own.

Skidmarks.cs is the main controller script, and all skidmark-making objects in the scene should call it. You could turn this into a singleton for easier access.

WheelSkid.cs is an example script for what you might put on a wheel to generate skidmarks. In the example scene, each wheel on the car has a copy of this script.