BicycleControllerBaseBehaviour.cs 543 B

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