Adds a traditional brake alongside the existing handbrake functionality. This change allows for more controlled deceleration using a standard braking system and introduces a brake power parameter in the vehicle controller for further adjustment. The input manager is updated to accommodate a new brake input, and the vehicle controller uses this input to apply a progressive braking force, particularly at lower speeds. Also corrects a typo in the braking logic.
16 lines
355 B
Plaintext
16 lines
355 B
Plaintext
%YAML 1.1
|
|
%TAG !u! tag:unity3d.com,2011:
|
|
--- !u!134 &13400000
|
|
PhysicsMaterial:
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
m_Name: Friction
|
|
serializedVersion: 2
|
|
m_DynamicFriction: 1
|
|
m_StaticFriction: 1
|
|
m_Bounciness: 0
|
|
m_FrictionCombine: 3
|
|
m_BounceCombine: 2
|