Struct ColliderDistanceInput
The input to collider distance queries.
Inherited Members
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 |