Skip to content

Commit

Permalink
Fix func name (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn60 authored Oct 26, 2023
1 parent d1cb0a4 commit 339b873
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected override void UpdateSensor()

_velocity = (_position - _position_last) / _dt;
_acceleration = (_velocity - _velocity_last) / _dt;
_acceleration += _transform.InverseTransformVector(_gravity).normalized * _gravityMagnitude;
_acceleration += _transform.InverseTransformDirection(_gravity).normalized * _gravityMagnitude;

Quaternion rotation_delta = Quaternion.Inverse(_rotation_last) * _rotation;
rotation_delta.ToAngleAxis(out float angle, out Vector3 axis);
Expand Down

0 comments on commit 339b873

Please sign in to comment.