This Node is used to manage the most common interactions with the Unity RigidBody Component.
It requires a RigidBody to be set up. See the Unity Manual for more info.
Based on the action the RigidBody is required to perform, this component changes its behavior and requirements.
Action Types
The OVER SDK provides several ways to interact with a Unity RigidBody Component. A list can be found in OvrRigidbodyActionType.
Force
Allows user to apply force to the target Rigidbody. Force is applied using the Unity built-in physics engine, and with different effects, based on the type of force applied.
Force simply applies force to a Rigidbody. ExplosiveForce applies force simulating explosion effects. RelativeForce applies force in relation to Rigidbody's coordinate system.
Note: the following attributes are added to the existing ones from the super class OvrNode
[Explosive only] Adjustment to the apparent position of the explosion to make it seem to lift objects
Example of OvrRigidBody, in this case a simple force is applied to a Rigidbody locally, in direction of forward vector.
Torque
Allows the user to add a torque to the target Rigidbody. Torque is applied using the Unity built-in physics engine, and with different effects, based on the type applied.
Torque simply applies a torque to a Rigidbody. RelativeTorque applies torque in relation to Rigidbody's coordinate system.
Note: the following attributes are added to the existing ones from the super class OvrNode