Class BurstPhysicsUtils
Provides utility methods for physics calculations in Burst-compiled code.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Utilities
Syntax
public static class BurstPhysicsUtils
Methods
GetSphereOverlapParameters(in Vector3, in Vector3, out Vector3, out Single, out Single)
Computes sphere overlap parameters given the start and end positions of the overlap.
Declaration
public static void GetSphereOverlapParameters(in Vector3 overlapStart, in Vector3 overlapEnd, out Vector3 normalizedOverlapVector, out float overlapSqrMagnitude, out float overlapDistance)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | overlapStart | The starting position of the sphere overlap. |
Vector3 | overlapEnd | The ending position of the sphere overlap. |
Vector3 | normalizedOverlapVector | Output parameter containing the normalized overlap direction vector. |
Single | overlapSqrMagnitude | Output parameter containing the square of the magnitude of the overlap vector. |
Single | overlapDistance | Output parameter containing the distance of the overlap. |