mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
PredictedRigidbody: update hard follow commented code
This commit is contained in:
parent
b7bbd0fb50
commit
237ffac7a9
@ -293,8 +293,8 @@ protected virtual void DestroyGhosts()
|
|||||||
protected virtual void SmoothFollowPhysicsCopy()
|
protected virtual void SmoothFollowPhysicsCopy()
|
||||||
{
|
{
|
||||||
// hard follow:
|
// hard follow:
|
||||||
// tf.position = physicsCopyCollider.position;
|
// predictedRigidbodyTransform.GetPositionAndRotation(out Vector3 physicsPosition, out Quaternion physicsRotation);
|
||||||
// tf.rotation = physicsCopyCollider.rotation;
|
// tf.SetPositionAndRotation(physicsPosition, physicsRotation);
|
||||||
|
|
||||||
// ORIGINAL VERSION: CLEAN AND SIMPLE
|
// ORIGINAL VERSION: CLEAN AND SIMPLE
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user