mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Prediction: expose physics copy components to inheriting classes
This commit is contained in:
parent
d00af697bb
commit
fcea3ce9d4
@ -87,9 +87,9 @@ public class PredictedRigidbody : NetworkBehaviour
|
||||
// Rigidbody & Collider are moved out into a separate object.
|
||||
// this way the visual object can smoothly follow.
|
||||
protected GameObject physicsCopy;
|
||||
Transform physicsCopyTransform; // caching to avoid GetComponent
|
||||
Rigidbody physicsCopyRigidbody; // caching to avoid GetComponent
|
||||
Collider physicsCopyCollider; // caching to avoid GetComponent
|
||||
protected Transform physicsCopyTransform; // caching to avoid GetComponent
|
||||
protected Rigidbody physicsCopyRigidbody; // caching to avoid GetComponent
|
||||
protected Collider physicsCopyCollider; // caching to avoid GetComponent
|
||||
float smoothFollowThreshold; // caching to avoid calculation in LateUpdate
|
||||
|
||||
// we also create one extra ghost for the exact known server state.
|
||||
|
Loading…
Reference in New Issue
Block a user