mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
? thing
This commit is contained in:
parent
e64cbd28ec
commit
c77fe339f6
@ -97,14 +97,9 @@ namespace QSB.TransformSync
|
||||
}
|
||||
|
||||
SyncedTransform.parent = ReferenceTransform;
|
||||
if (SyncedTransform.parent == _previousTransform)
|
||||
{
|
||||
SyncedTransform.localPosition = Vector3.SmoothDamp(SyncedTransform.localPosition, transform.position, ref _positionSmoothVelocity, SmoothTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
SyncedTransform.localPosition = transform.position;
|
||||
}
|
||||
SyncedTransform.localPosition = SyncedTransform.parent == _previousTransform
|
||||
? Vector3.SmoothDamp(SyncedTransform.localPosition, transform.position, ref _positionSmoothVelocity, SmoothTime)
|
||||
: transform.position;
|
||||
_previousTransform = SyncedTransform.parent;
|
||||
|
||||
SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, Time.deltaTime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user