BicycleControllerBaseBehaviour.cs 531 B

12345678910111213141516171819
  1. using UnityEngine;
  2. namespace Controller.Bicycle
  3. {
  4. public class BicycleControllerBaseBehaviour : MonoBehaviour
  5. {
  6. [Header("Base - Config")] public BicycleControllerMode controllerMode;
  7. [Header("Base - Physics")] public Transform centerOfMass;
  8. public Rigidbody rigidBody;
  9. [Header("Base - Values")] public float maxLeaningAngle = 35f;
  10. public float maxSteeringAngle = 80f;
  11. [Range(0, 15)] [Tooltip("Speed in m/s")]
  12. public float maxSpeed = 11.111f; //40 km/h
  13. }
  14. }