UxrHapticOnImpact.ApplyBreakExplosionForce Method

Applies an explosive force to a rigidbody as a result of a hit.

Namespace: UltimateXR.Haptics.Helpers
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static void ApplyBreakExplosionForce(
	Rigidbody rigidbody,
	UxrHapticImpactEventArgs eventArgs,
	float force
)

Parameters

 

rigidbody
Type: Rigidbody
The rigidbody to apply a force to
eventArgs
Type: UltimateXR.Haptics.Helpers.UxrHapticImpactEventArgs
Event parameters
force
Type: System.Single
Explosive force applied to the rigidbody

See Also

Reference

UxrHapticOnImpact Class
UltimateXR.Haptics.Helpers Namespace