Skip to content

Simple car controller for Unity requiring only a body with four wheels.

License

Notifications You must be signed in to change notification settings

NilsSlui/CarController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CarController

Simple car controller for Unity requiring only a body with four wheels.

Features:

  • Touchscreen and keyboard support
  • Automatically find wheels
  • Camera follow
  • Adjustable skidmarks
  • Engine backfire
  • Breaklights
  • Updates wheel positions based on steering angle

Setup:

  1. Create or download a car body with four wheels and wheelcolliders
  2. Name each wheel WheelFrontLeft, WheelFrontRight, WheelRearLeft, WheelRearRight
  3. Select two materials for active and disabled breaklight
  4. Attach breaklight element to script in editor.
  5. Label game camera as "Main Camera"
  6. Uncomment touchscreen controls or keyboard controls
  7. Attach this script

About

Simple car controller for Unity requiring only a body with four wheels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages