docs.unity3d.com
    Show / Hide Table of Contents

    Class BurstPhysicsUtils

    Provides utility methods for physics calculations in Burst-compiled code.

    Inheritance
    Object
    BurstPhysicsUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023