*
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class CarSuspension : MonoBehaviour {
|
||||
public float suspensionDistance = 0.2f;
|
||||
public float targetPosition = 0.2f;
|
||||
public float suspensionSpring = 35000.0f;
|
||||
public float suspensionDamper = 4500.0f;
|
||||
private float _suspensionForce;
|
||||
private float previousLength = 0.0f;
|
||||
private float currentLength = 0.0f;
|
||||
private float _currentSuspensionPosition = 1;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user