Photon Fusion 1.1.9

Public Member Functions | Protected Member Functions | Properties | List of all members
NetworkRigidbodyObsolete Class Reference

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 Copy2EngineTRSState (int offset)
 
void Copy2EngineTRSState (Vector3 position, Quaternion rotation, bool forceTransform=false)
 
override void GetEnginePositionRotation2Buffer (out Vector3 position, out Quaternion rotation)
 
override void OnEnable ()
 

Properties

Rigidbody Rigidbody [get]
 Reference of the Rigidbody associated with this NetworkRigidbodyObsolete.
 

Detailed Description

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.

Member Function Documentation

◆ ApplyQueuedTeleport()

override void ApplyQueuedTeleport ( )
protectedvirtual

Applies the latest unconsumed Teleport() call after the Forward simulation is complete, and before the TRS state is captured.

Reimplemented from NetworkTransformObsolete.

◆ Awake()

override void Awake ( )
protectedvirtual

Reimplemented from NetworkTransformAnchor.

◆ Copy2EngineTRSState()

override void Copy2EngineTRSState ( int  offset)
protectedvirtual

Reimplemented from NetworkTransformObsolete.

◆ CopyBackingFieldsToState()

override void CopyBackingFieldsToState ( bool  firstTime)
virtual

Reimplemented from NetworkBehaviour.

◆ GetEnginePositionRotation2Buffer()

override void GetEnginePositionRotation2Buffer ( out Vector3  position,
out Quaternion  rotation 
)
protectedvirtual

Reimplemented from NetworkTransformObsolete.

◆ OnEnable()

override void OnEnable ( )
protectedvirtual

Reimplemented from NetworkTransformAnchor.

◆ Spawned()

override void Spawned ( )
virtual

Post spawn callback.

Reimplemented from NetworkBehaviour.