Skip to content

Commit f2df735

Browse files
Eiderenxen2
authored andcommitted
fix: CharacterComponent account for collider mass
1 parent 4d110fb commit f2df735

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/CharacterComponentAbstract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public abstract class CharacterComponentAbstract : BodyComponent, ISimulationUpd
1818
/// <inheritdoc/>
1919
protected override void AttachInner(NRigidPose pose, BodyInertia shapeInertia, TypedIndex shapeIndex)
2020
{
21-
base.AttachInner(pose, new BodyInertia { InverseMass = 1f }, shapeIndex);
21+
base.AttachInner(pose, new BodyInertia { InverseMass = shapeInertia.InverseMass }, shapeIndex);
2222

2323
Debug.Assert(BodyReference.HasValue);
2424
Debug.Assert(Simulation is not null);

0 commit comments

Comments
 (0)