Skip to content

Commit 38b3533

Browse files
committed
using fixed time instead of fixed delta time
1 parent af7efee commit 38b3533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Scripts/Sensors/IMU/ZOIMU.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected override async void ZOFixedUpdateHzSynchronized() {
108108
// calculate linear acceleration
109109
Vector3 velocity = transform.InverseTransformDirection(_rigidBody.velocity);
110110
Vector3 prevAcceleration = _acceleration;
111-
_acceleration = (velocity - _lastVelocity) / Time.fixedDeltaTime;
111+
_acceleration = (velocity - _lastVelocity) / Time.deltaTime;
112112
_lastVelocity = velocity;
113113

114114

0 commit comments

Comments
 (0)