mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix stacked
This commit is contained in:
parent
9d8bb6b2be
commit
12300a1472
@ -26,7 +26,7 @@ void Update()
|
||||
// apply force in a random direction, this looks best
|
||||
Debug.Log($"Applying force to: {hit.collider.name}");
|
||||
Vector3 impulse = Random.insideUnitSphere * force;
|
||||
predicted.predictedRigidbody.AddForce(impulse, ForceMode.Impulse);
|
||||
predicted.AddPredictedForce(impulse, ForceMode.Impulse);
|
||||
CmdApplyForce(predicted.netIdentity, impulse);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user