mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
fix rotation smooth
This commit is contained in:
parent
ce26fc7662
commit
57037cce9c
@ -110,7 +110,7 @@ namespace QSB.TransformSync
|
||||
}
|
||||
|
||||
SyncedTransform.localPosition = SmartSmoothDamp(SyncedTransform.localPosition, transform.position);
|
||||
SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, Time.deltaTime);
|
||||
SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, SmoothTime);
|
||||
}
|
||||
|
||||
private Vector3 SmartSmoothDamp(Vector3 currentPosition, Vector3 targetPosition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user