-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bullet] Splits some parameters into custom class, for later
- Loading branch information
Showing
3 changed files
with
51 additions
and
32 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
Nodes/VVVV.DX11.Nodes.Bullet/DataTypes/Shapes/Vehicle/WheelInfoSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace VVVV.Bullet.DataTypes.Vehicle | ||
{ | ||
public class WheelInfoSettings | ||
{ | ||
public WheelInfoSettings() | ||
{ | ||
this.SuspensionStiffness = 20.0f; | ||
this.WheelsDampingRelaxation = 2.3f; | ||
this.WheelsDampingCompression = 4.4f; | ||
this.FrictionSlip = 1000; | ||
this.RollInfluence = 0.1f; | ||
} | ||
|
||
public float SuspensionStiffness; | ||
public float WheelsDampingRelaxation; | ||
public float WheelsDampingCompression; | ||
public float FrictionSlip; | ||
public float RollInfluence; | ||
} | ||
|
||
public class WheelConstructionSettings | ||
{ | ||
public float WheelRadius = 0.7f; | ||
public float WheelWidth = 0.4f; | ||
public float SuspensionRestLength = 0.6f; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters