Advertisement
Munchy2007

BuggyControllerV1

Mar 16th, 2016
21,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class BuggyController : MonoBehaviour {
  5.  
  6.     Rigidbody body;
  7.     float deadZone = 0.1f;
  8.     public float m_groundedDrag = 3f;
  9.     public float maxVelocity = 50;
  10.     public float hoverForce = 1000;
  11.     public float gravityForce = 1000f;
  12.     public float hoverHeight = 1.5f;
  13.     public GameObject[] hoverPoints;
  14.  
  15.     public float forwardAcceleration = 8000f;
  16.     public float reverseAcceleration = 4000f;
  17.     float thrust = 0f;
  18.  
  19.     public float turnStrength = 1000f;
  20.     float turnValue = 0f;
  21.  
  22.     public ParticleSystem[] dustTrails = new ParticleSystem[2];
  23.  
  24.     int layerMask;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement