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

PhysicsGrabbable Class

Extends MonoBehaviour
Obsolete: Makes the GameObject it's attached to kinematic during a grab.
As a result, the GameObject can be transformed 1-1 without any undesirable effects. The features of this type are now available in Grabbable and RigidbodyKinematicLocker, which are the recommended way for new code to leverage physics in grab interactions.

Properties

IPointable Pointable[Get]

Protected Fields

bool _started[Get]

Events

An event which signals when new velocities have been applied to this grabbable, for example in response to a grab by a GrabInteractor.
Handlers must accept two Vector3 arguments: linear velocity, and angular velocity.

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

Sets the velocities to be applied to the grabbable during the next Unity fixed update.
Note that, since the velocities are not actually applied synchronously here, this will not trigger an invocation of WhenVelocitiesApplied; that will happen when the velocities are actually provided to the physics system during the next fixed update.
Parameters
linearVelocity
The linear velocity to be applied
angularVelocity
The angular velocity to be applied
Injects all required dependencies for a dynamically instantiated PhysicsGrabbable; effectively wraps InjectPointable(IPointable) and InjectRigidbody(Rigidbody).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Obsolete: Injects all required dependencies for a dynamically instantiated PhysicsGrabbable; effectively wraps InjectPointable(IPointable) and InjectRigidbody(Rigidbody).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Obsolete: wraps InjectPointable(IPointable), which should be used directly in new code.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets an IPointable for a dynamically instantiated PhysicsGrabbable.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the Unity Rigidbody for a dynamically instantiated PhysicsGrabbable.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets whether or not to scale mass with size for a dynamically instantiated PhysicsGrabbable.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon