OwnedRigidbody - maceeikodev/WreckMP_Ref GitHub Wiki

Definition

public class OwnedRigidbody

Helper class for a rigidbody with an owner.

Properties

public Transform transform { get; } - The transform of the rigidbody.

public ulong OwnerID { get; } - The Steam ID of the rigidbody owner. The owner is overriding the rigidbody's properties for other players when they update.

public Rigidbody Rigidbody { get; } - The rigidbody object. Can be null, as this may be sometimes destroyed and later recreated again. OwnerTransform keeps reference to the object even if the rigidbody is destroyed.