From 8f006bde992fca4ad23747c6b9483b5d6c202fa7 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 22 Jul 2025 22:26:43 +0800 Subject: [PATCH] Typo: Rename _nativeIntertia to _nativeInertia #2840 --- .../Stride.BepuPhysics/Stride.BepuPhysics/BodyComponent.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/BodyComponent.cs b/sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/BodyComponent.cs index e7a7ff7d3d..58ff7145b8 100644 --- a/sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/BodyComponent.cs +++ b/sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/BodyComponent.cs @@ -22,7 +22,7 @@ public class BodyComponent : CollidableComponent private float _sleepThreshold = 0.01f; private byte _minimumTimestepCountUnderThreshold = 32; private InterpolationMode _interpolationMode = InterpolationMode.None; - private BodyInertia _nativeIntertia; + private BodyInertia _nativeInertia; /// Can be null when it isn't part of a simulation yet/anymore [DataMemberIgnore] @@ -60,7 +60,7 @@ public bool Kinematic { #warning Norbo: maybe setting bRef.LocalInertia is enough instead of getting and applying description ... ? bRef.GetDescription(out var description); - description.LocalInertia = Kinematic ? new BodyInertia() : _nativeIntertia; + description.LocalInertia = Kinematic ? new BodyInertia() : _nativeInertia; bRef.ApplyDescription(description); } } @@ -422,7 +422,7 @@ protected override void AttachInner(NRigidPose pose, BodyInertia shapeInertia, T { Debug.Assert(Simulation is not null); - _nativeIntertia = shapeInertia; + _nativeInertia = shapeInertia; if (Kinematic) shapeInertia = new BodyInertia();