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

ThrowTuner Class

Extends MonoBehaviour
Provides tunable throwing physics behavior for grabbable objects in the Interaction SDK.
This component applies customizable physics modifications when an object is thrown, including velocity adjustments, rotation alignment, and continuous flight forces.

Fields

Gets the physics profile currently assigned to this ThrowTuner.
Gets whether the object is currently in flight after being thrown.

Protected Functions

Auto-wires component references during development time.
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
virtual void FixedUpdate ( )
Applies the physics profile to the rigidbody when a throw begins.
Override this method to customize how the initial throw physics are applied.
Updates the object's flight behavior each physics frame.
Override this method to add custom flight behaviors like homing or magnetism.
Applies velocity and angular velocity modifications based on the physics profile.
Override this method to add custom velocity calculations.
Applies the built-in forces defined in the physics profile.
This includes gravity scaling, constant forces, and velocity damping.

Member Functions

Resets the object's rotation to identity (no rotation).
Useful for resetting objects after they've been thrown.
Sets the physics profile for a dynamically instantiated ThrowTuner.
Parameters
profile
The ThrowPhysicsProfile to be assigned
Sets the Grabbable for a dynamically instantiated ThrowTuner.
This method exists to support Interaction SDK's dependency injection pattern.
Parameters
grabbable
The Grabbable component to be assigned
Sets the Rigidbody for a dynamically instantiated ThrowTuner.
Parameters
rigidbody
The Rigidbody component to be assigned
Sets all required dependencies for a dynamically instantiated ThrowTuner.
Parameters
profile
The ThrowPhysicsProfile to be assigned
grabbable
The Grabbable component to be assigned
rigidbody
The Rigidbody component to be assigned
Did you find this page helpful?