Class RigidbodyPauser
Pauses and unpauses rigidbodies. While paused rigidbodies cannot be interacted with or simulated.
Inheritance
System.Object
RigidbodyPauser
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FishNet.Component.Prediction
Assembly: FishNet.Runtime.dll
Syntax
public class RigidbodyPauser : IResettable
Properties
Paused
True if the rigidbodies are considered paused.
Declaration
public bool Paused { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
InitializeState()
Declaration
public void InitializeState()
Pause()
Pauses rigidbodies preventing them from interacting.
Declaration
public void Pause()
ResetState()
Declaration
public void ResetState()
Unpause()
Unpauses rigidbodies allowing them to interact normally.
Declaration
public void Unpause()
UpdateRigidbodies()
Rebuilds rigidbodies using initialized settings.
Declaration
public void UpdateRigidbodies()
UpdateRigidbodies(Transform, RigidbodyType, Boolean)
Assigns rigidbodies.
Declaration
public void UpdateRigidbodies(Transform t, RigidbodyType rbType, bool getInChildren)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | t | |
RigidbodyType | rbType | |
System.Boolean | getInChildren |