docs.unity3d.com
    Show / Hide Table of Contents

    Struct ColliderDistanceInput

    The input to collider distance queries.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct ColliderDistanceInput

    Constructors

    ColliderDistanceInput(BlobAssetReference<Collider>, Single, RigidTransform, Single)

    Constructor.

    Declaration
    public ColliderDistanceInput(BlobAssetReference<Collider> collider, float maxDistance, RigidTransform transform, float uniformScale = 1F)
    Parameters
    Type Name Description
    BlobAssetReference<Collider> collider

    The collider used to calculate distance from.

    Single maxDistance

    The maximum distance.

    RigidTransform transform

    The transform. of the collider

    Single uniformScale

    (Optional) The uniform scale of the collider.

    Fields

    Collider

    Gets the collider used to calculate distance from.

    Declaration
    [NativeDisableUnsafePtrRestriction]
    public Collider*Collider
    Field Value
    Type Description
    Collider*

    The collider to calculate distance from.

    MaxDistance

    The maximum distance.

    Declaration
    public float MaxDistance
    Field Value
    Type Description
    Single

    Scale

    The scale of the collider.

    Declaration
    public float Scale
    Field Value
    Type Description
    Single

    Transform

    The transform of the collider.

    Declaration
    public RigidTransform Transform
    Field Value
    Type Description
    RigidTransform

    Extension Methods

    BlobAssetReferenceColliderExtension.SetCollider(ref ColliderDistanceInput, BlobAssetReference<Collider>)
    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