Guides

VRTK_BasePhysicsControllable

extends VRTK_BaseControllable

Overview

Provides a base that all physics based Controllables can inherit from.

Script Usage:

This is an abstract class that is to be inherited to a concrete class that provides physics based controllable functionality, therefore this script should not be directly used.

Inspector Parameters

  • Connected To: The Rigidbody that the Controllable is connected to.

Class Methods

GetControlRigidbody/0

public virtual Rigidbody GetControlRigidbody()

  • Parameters
    • none
  • Returns
    • Rigidbody - The Rigidbody associated with the control.

The GetControlRigidbody method returns the rigidbody associated with the control.

GetControlActivatorContainer/0

public virtual GameObject GetControlActivatorContainer()

  • Parameters
    • none
  • Returns
    • GameObject - The GameObject that contains the Controller Rigidbody Activator associated with the control.

The GetControlActivatorContainer method returns the GameObject that contains the Controller Rigidbody Activator associated with the control.


Did this page help you?