UxrHapticImpactEventArgs Constructor

Constructor.

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

Syntax

C#

public UxrHapticImpactEventArgs(
	RaycastHit hitInfo,
	float forceT,
	Vector3 velocity,
	float angleForwardVelocity,
	float anglePenetration
)

Parameters

 

hitInfo
Type: RaycastHit
Hit information
forceT
Type: System.Single
Hit force
velocity
Type: Vector3
Hit velocity
angleForwardVelocity
Type: System.Single
Angle between hit transform world forward and hit transform world velocity
anglePenetration
Type: System.Single
Angle between hit transform world and -normal

See Also

Reference

UxrHapticImpactEventArgs Class
UltimateXR.Haptics.Helpers Namespace