Replicates a Unity Rigidbody state from the NetworkObject.StateAuthority to all other peers. Add this component to a GameObject with a Rigidbody component. A NetworkObject is required on this GameObject or a parent of this GameObject. More...
Inherits NetworkRigidbodyBaseObsolete, and IStateAuthorityChanged.
Public Member Functions | |
override void | CopyBackingFieldsToState (bool firstTime) |
override void | Spawned () |
Post spawn callback. | |
Protected Member Functions | |
override void | ApplyQueuedTeleport () |
Applies the latest unconsumed Teleport() call after the Forward simulation is complete, and before the TRS state is captured. | |
override void | Awake () |
override void | Copy2BufferTRSState (int offset) |
override void | Copy2EngineTRSState (int offset) |
override void | OnEnable () |
float | ReadBufferAndConvertToWorldSpace (int offset) |
override unsafe Quaternion | ReadRotationToQuaternion (int *offset, ReadAccuracy readAccuracy) |
Protected Attributes | |
Vector3 | |
Reads the TRS values from state buffer for this tick, and converts them to world space if using Spaces.Local. | |
Properties | |
Rigidbody2D | Rigidbody [get] |
Reference of the Rigidbody associated with this NetworkRigidbodyObsolete. | |
Replicates a Unity Rigidbody state from the NetworkObject.StateAuthority to all other peers. Add this component to a GameObject with a Rigidbody component. A NetworkObject is required on this GameObject or a parent of this GameObject.
|
protectedvirtual |
Applies the latest unconsumed Teleport() call after the Forward simulation is complete, and before the TRS state is captured.
Reimplemented from NetworkTransformObsolete.
|
protectedvirtual |
Reimplemented from NetworkTransformAnchor.
|
protectedvirtual |
Reimplemented from NetworkTransformObsolete.
|
protectedvirtual |
Reimplemented from NetworkTransformObsolete.
|
virtual |
Reimplemented from NetworkBehaviour.
|
protectedvirtual |
Reimplemented from NetworkTransformAnchor.
|
protectedvirtual |
Reimplemented from NetworkTransformObsolete.
|
virtual |
Post spawn callback.
Reimplemented from NetworkBehaviour.