API reference
API reference
Select your platform
No SDKs available
No versions available

RigidbodyKinematicLocker Class

Manages the kinematic state of a Rigidbody component attached to the GameObject.
Oculus::Interaction::RigidbodyKinematicLocker extends MonoBehaviour.

Overview

Public Member Functions

void
Locks to true the kinematic state of the attached Rigidbody.
void
Unlocks the kinematic state of the attached Rigidbody.

Details

Detailed Description

This class provides methods to lock and unlock the kinematic state of the Rigidbody, ensuring controlled changes when multiple actors want to modify the kinematic state.

Member Functions

void Oculus.Interaction.RigidbodyKinematicLocker.LockKinematic ( )
Locks to true the kinematic state of the attached Rigidbody.
This method increments an internal counter with each call and sets the Rigidbody to kinematic. It also saves the original kinematic state for restoration.
void Oculus.Interaction.RigidbodyKinematicLocker.UnlockKinematic ( )
Unlocks the kinematic state of the attached Rigidbody.
This method decrements the internal counter. When the counter reaches zero, it restores the Rigidbody to its original kinematic state.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon