Skip to content

Commit a41334f

Browse files
authored
fix: Bepu, normalize default servo settings across servo constraints (#2838)
1 parent 8e1c55e commit a41334f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/Constraints/OneBodyAngularServoConstraintComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public sealed class OneBodyAngularServoConstraintComponent : OneBodyConstraintCo
3131
public OneBodyAngularServoConstraintComponent() => BepuConstraint = new()
3232
{
3333
TargetOrientation = Quaternion.Identity,
34-
ServoSettings = new ServoSettings(),
34+
ServoSettings = new ServoSettings(10, 1, 1000),
3535
SpringSettings = new SpringSettings(30, 5)
3636
};
3737

sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/Constraints/OneBodyLinearServoConstraintComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public sealed class OneBodyLinearServoConstraintComponent : OneBodyConstraintCom
1717
{
1818
public OneBodyLinearServoConstraintComponent() => BepuConstraint = new()
1919
{
20-
ServoSettings = new ServoSettings(100, 1, 1000),
20+
ServoSettings = new ServoSettings(10, 1, 1000),
2121
SpringSettings = new SpringSettings(30, 5)
2222
};
2323

0 commit comments

Comments
 (0)