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

RigidbodyKinematicLockerExtension Class

Extension methods for Rigidbody to easily manage kinematic locking through the RigidbodyKinematicLocker component.

Overview

Static Public Member Functions

static void
LockKinematic
( this Rigidbody rigidbody )
Locks to true the kinematic state of the Rigidbody this method is called on.
static void
UnlockKinematic
( this Rigidbody rigidbody )
Unlocks the kinematic state of the Rigidbody this method is called on.

Details

Static Member Functions

static void Oculus.Interaction.RigidbodyKinematicLockerExtension.LockKinematic
( this Rigidbody rigidbody )
Locks to true the kinematic state of the Rigidbody this method is called on.
If the Rigidbody does not have a RigidbodyKinematicLocker component, it adds one.
Parameters
rigidbody
The Rigidbody to lock the kinematic state on.
static void Oculus.Interaction.RigidbodyKinematicLockerExtension.UnlockKinematic
( this Rigidbody rigidbody )
Unlocks the kinematic state of the Rigidbody this method is called on.
If the Rigidbody does not have a RigidbodyKinematicLocker component, it logs an error.
Parameters
rigidbody
The Rigidbody to unlock the kinematic state on.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon