mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
grab rb pos for now
This commit is contained in:
parent
f9a5ff72c4
commit
a7826711c3
@ -269,9 +269,8 @@ void FixedUpdateClient()
|
|||||||
Debug.Log($"{name} BLENDING @ {blendingElapsed:F2} / {blendingTime:F2} => {(p*100):F0}%");
|
Debug.Log($"{name} BLENDING @ {blendingElapsed:F2} / {blendingTime:F2} => {(p*100):F0}%");
|
||||||
|
|
||||||
// blend local position to remote position
|
// blend local position to remote position
|
||||||
|
Vector3 currentPosition = predictedRigidbody.position;
|
||||||
// FAST VERSION: this shows in profiler a lot, so cache EVERYTHING!
|
Quaternion currentRotation = predictedRigidbody.rotation;
|
||||||
tf.GetPositionAndRotation(out Vector3 currentPosition, out Quaternion currentRotation); // faster than tf.position + tf.rotation
|
|
||||||
|
|
||||||
// smoothly interpolate to the target position.
|
// smoothly interpolate to the target position.
|
||||||
// speed relative to how far away we are.
|
// speed relative to how far away we are.
|
||||||
|
Loading…
Reference in New Issue
Block a user