Photon Fusion 1.1.11

Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
NetworkRigidbodyObsolete2D 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. More...
 

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. More...
 
override void Awake ()
 
override void Copy2BufferTRSState (int offset)
 
override void Copy2EngineTRSState (int offset)
 
override void OnEnable ()
 
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. More...
 

Properties

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

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.

◆ Spawned()

override void Spawned ( )
virtual

Post spawn callback.

Reimplemented from NetworkBehaviour.

Member Data Documentation

◆ Vector3

Vector3
protected

Reads the TRS values from state buffer for this tick, and converts them to world space if using Spaces.Local.

Property Documentation

◆ Rigidbody

Rigidbody2D Rigidbody
get

Reference of the Rigidbody associated with this NetworkRigidbodyObsolete.