docs.unity.cn
    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
    Generated by DocFX
    on Wednesday, June 21, 2023