mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
set rb not tf
This commit is contained in:
parent
2775fd67ff
commit
be8776473d
@ -271,9 +271,9 @@ void UpdateClient()
|
||||
// Quaternions always need to be normalized in order to be a valid rotation after operations
|
||||
Quaternion newRotation = Quaternion.Slerp(currentRotation, lastReceivedState.rotation, rotationBlendingSpeed * deltaTime).normalized;
|
||||
|
||||
|
||||
// assign position and rotation together. faster than accessing manually.
|
||||
tf.SetPositionAndRotation(newPosition, newRotation);
|
||||
// assign rigidbody position & rotation while keeping velocity to keep moving
|
||||
predictedRigidbody.MovePosition(newPosition);
|
||||
predictedRigidbody.MoveRotation(newRotation);
|
||||
|
||||
// blend for 2 x syncinterval.
|
||||
// TODO configurable
|
||||
|
Loading…
Reference in New Issue
Block a user