RigidbodySynchronizable Class

Control and synchronizes an object's position through physics simulation.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public class RigidbodySynchronizable : RigidbodySynchronizableCommon
Inheritance
Object    Object    Component    Behaviour    MonoBehaviour    CommunicationBridge    CommunicationBridgeUID    Synchronizable    RigidbodySynchronizableCommon    RigidbodySynchronizable

Remarks

Properties

angularVelocity

The angular velocity vector of the rigidbody measured in radians per second.

isKinematic Controls whether physics affects the rigidbody.
(Overrides RigidbodySynchronizableCommonisKinematic)
position

The position of the rigidbody.

rotation

The rotation of the Rigidbody.

velocity

The velocity vector of the rigidbody. It represents the rate of change of Rigidbody position.

Methods

AddForce(Vector3, ForceMode) Adds a force to the Rigidbody.
AddForce(Single, Single, Single, ForceMode) Adds a force to the Rigidbody.
AddTorque(Vector3, ForceMode) Adds a torque to the rigidbody.
AddTorque(Single, Single, Single, ForceMode) Adds a torque to the rigidbody.
AssembleData
(Overrides SynchronizableAssembleData(Writer, Byte))
Awake 
DisassembleData
(Overrides SynchronizableDisassembleData(Reader, Byte))
IsSleeping Is the rigidbody sleeping?
(Overrides RigidbodySynchronizableCommonIsSleeping)
MovePosition

Moves the kinematic Rigidbody towards position.

MoveRotation

Rotates the rigidbody to rotation.

OnCollisionEnter
(Overrides RigidbodySynchronizableCommonOnCollisionEnter(Collision))
Reset
(Overrides RigidbodySynchronizableCommonReset)
SetPosition

Moves the kinematic Rigidbody to a new position.

SetRotation

Set the rotation of the rigidbody to new rotation.

Sleep Forces a rigidbody to sleep at least one frame.
(Overrides RigidbodySynchronizableCommonSleep)
WakeUp Forces a rigidbody to wake up.
(Overrides RigidbodySynchronizableCommonWakeUp)

Fields

Rigidbody Rigidbody to synchronize.

See Also

Reference

[!:https://docs.unity3d.com/ScriptReference/Rigidbody.html]