Minor - V0.3.0 - Ajoute frein classique et frein à main - V

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.
This commit is contained in:
2026-02-03 19:27:33 +01:00
parent 7a3d9e54c4
commit 8ffb00a024
5 changed files with 162 additions and 34 deletions

View File

@@ -315,8 +315,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 330585543}
serializedVersion: 2
m_LocalRotation: {x: 0.27704412, y: 0, z: 0, w: 0.9608572}
m_LocalPosition: {x: 1.9644628, y: 7.0570297, z: -4.107703}
m_LocalRotation: {x: 0.2181528, y: 0, z: 0, w: 0.97591466}
m_LocalPosition: {x: 1.9644628, y: 6.2770295, z: -5.0077033}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@@ -949,6 +949,30 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3647447231556822330, guid: f80147e53b6c59543b384359e9759152, type: 3}
propertyPath: m_LocalPosition.y
value: 4
objectReference: {fileID: 0}
- target: {fileID: 3647447231556822330, guid: f80147e53b6c59543b384359e9759152, type: 3}
propertyPath: m_LocalPosition.z
value: -8.5
objectReference: {fileID: 0}
- target: {fileID: 3647447231556822330, guid: f80147e53b6c59543b384359e9759152, type: 3}
propertyPath: m_LocalRotation.w
value: 0.97591466
objectReference: {fileID: 0}
- target: {fileID: 3647447231556822330, guid: f80147e53b6c59543b384359e9759152, type: 3}
propertyPath: m_LocalRotation.x
value: 0.2181528
objectReference: {fileID: 0}
- target: {fileID: 4888852074431289531, guid: f80147e53b6c59543b384359e9759152, type: 3}
propertyPath: FollowOffset.y
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4888852074431289531, guid: f80147e53b6c59543b384359e9759152, type: 3}
propertyPath: FollowOffset.z
value: -8.5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []