- Protoyped on the AI movement, found solutions for turns and moving after impacting the player. - Created a full base for AI state machine. - Worked on binding the core AI logic with the finite state machine.
22 lines
612 B
C#
22 lines
612 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "CarSpecs", menuName = "CarSpecs", order = 1)]
|
|
public class PlayerCarSpecs : ScriptableObject
|
|
{
|
|
public float dampingForce = 50;
|
|
public float strength = 500;
|
|
public float suspensionRestDist = 0.6f;
|
|
public float hitDist = 0.4f;
|
|
public float gripFactor = 0.4f;
|
|
public float tireMass = 2f;
|
|
|
|
public float totalSpeed = 20f;
|
|
public float rotationSpeed = 10f;
|
|
|
|
public float tireRotationAngle = 60f;
|
|
public float speedValue = 300f;
|
|
public float accelSpeed = 75f;
|
|
}
|