Class NetworkRigidbody
This component is used to replicate the position and rotation of an object. Therefore, it’s the same as the Network Transform, the difference is that Network Rigidbody must be used if you want to have client-side prediction over PhysX objects since it replicates several other properties necessary for correct prediction.
[IgnoreCodeGen]
[AddComponentMenu("Netick/Network Rigidbody")]
[RequireComponent(typeof(Rigidbody))]
[DisallowMultipleComponent]
public sealed class NetworkRigidbody : NetworkTransform, INetickNetworkScript, INetickScript, IClientSimulationCallbacks, IPhysicsComponent
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourNetworkRigidbody
- Implements
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
- Extension Methods
Constructors
NetworkRigidbody()
public NetworkRigidbody()
Methods
GameEngineIntoNetcode()
public override void GameEngineIntoNetcode()
InternalGetStateSizeWords()
public override int InternalGetStateSizeWords()
Returns
NetcodeIntoGameEngine()
public override void NetcodeIntoGameEngine()
NetworkAwake()
public override void NetworkAwake()
NetworkDestroy()
Called when this behaviour has been removed from the simulation.
public override void NetworkDestroy()
NetworkFixedUpdate()
Called every fixed-time network step. Any changes to the networked state should happen here.
On the client, if you are the Input Source or if this Object.PredictionMode is set to Everyone, it will be called several times in one update/tick during resimulations. To check for resimulations, use [IsResimulating].
public override void NetworkFixedUpdate()
NetworkStart()
Called when this behaviour has been added to the simulation.
public override void NetworkStart()