Photon Fusion 1.1.9

Public Member Functions | Properties | List of all members
NetworkPhysicsSimulation3D Class Reference

Fusion component for handling Physics.SyncTransforms() and Physics.Simulate(). Only used when NetworkProjectConfig.PhysicsEngines.Physics3D == true. More...

Inherits SimulationBehaviour, and IBeforeTick.

Public Member Functions

override void FixedUpdateNetwork ()
 Fusion FixedUpdate timing callback.
 
void Simulate ()
 
- Public Member Functions inherited from SimulationBehaviour
virtual void FixedUpdateNetwork ()
 Fusion FixedUpdate timing callback.
 
virtual void Render ()
 Post simulation frame rendering callback. Runs after all simulations have finished. Use in place of Unity's Update when Fusion is handling Physics.
 
- Public Member Functions inherited from Behaviour
AddBehaviour< T > ()
 Wrapper for Unity's GameObject.AddComponent()
 
GetBehaviour< T > ()
 Wrapper for Unity's GameObject.GetComponentInChildren()
 
bool TryGetBehaviour< T > (out T behaviour)
 Wrapper for Unity's GameObject.TryGetComponent()
 
void BeforeTick ()
 Called before each tick is simulated.
 

Properties

virtual float PhysicsSimulationDeltaTime [get]
 Delta-time used to update the physics simulation. By default, set to be the simulation delta-time.
 
- Properties inherited from SimulationBehaviour
bool CanReceiveCallback [get]
 
virtual bool HasInputAuthority [get]
 Returns true if the Simulation.LocalPlayer of the associated NetworkRunner is the designated as Input Authority for this network entity.
 
virtual bool HasStateAuthority [get]
 Returns true if the associated NetworkRunner is the State Authority for this network entity.
 
virtual bool IsProxy [get]
 Returns true if the associated NetworkRunner is neither the Input nor State Authority for this network entity. It is recommended to use !HasStateAuthority or !HasInputAuthority when possible instead, as this check requires evaluating both authorities - and is therefore less performant than the individual checks.
 

Additional Inherited Members

- Static Public Member Functions inherited from Behaviour
static void DestroyBehaviour (Behaviour behaviour)
 Wrapper for Unity's GameObject.Destroy()
 
- Public Attributes inherited from SimulationBehaviour
NetworkObject Object
 The NetworkObject this component is associated with. May be null if this GameObject does not have a NetworkObject.
 
NetworkRunner Runner
 The NetworkRunner this component is associated with.
 

Detailed Description

Fusion component for handling Physics.SyncTransforms() and Physics.Simulate(). Only used when NetworkProjectConfig.PhysicsEngines.Physics3D == true.

Member Function Documentation

◆ FixedUpdateNetwork()

override void FixedUpdateNetwork ( )
virtual

Fusion FixedUpdate timing callback.

Reimplemented from SimulationBehaviour.