Class RigidbodyStateExtensions
Inheritance
System.Object
RigidbodyStateExtensions
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 static class RigidbodyStateExtensions
Methods
GetState(Rigidbody)
Gets a RigidbodyState.
Declaration
public static RigidbodyState GetState(this Rigidbody rb)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Rigidbody | rb |
Returns
Type | Description |
---|---|
RigidbodyState |
GetState(Rigidbody2D)
Gets a Rigidbody2DState.
Declaration
public static Rigidbody2DState GetState(this Rigidbody2D rb)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Rigidbody2D | rb |
Returns
Type | Description |
---|---|
Rigidbody2DState |
SetState(Rigidbody, RigidbodyState)
Sets a state to a rigidbody.
Declaration
public static void SetState(this Rigidbody rb, RigidbodyState state)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Rigidbody | rb | |
RigidbodyState | state |
SetState(Rigidbody2D, Rigidbody2DState)
Sets a state to a rigidbody.
Declaration
public static void SetState(this Rigidbody2D rb, Rigidbody2DState state)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Rigidbody2D | rb | |
Rigidbody2DState | state |