Struct ColliderDistanceInput
The input to collider distance queries.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct ColliderDistanceInput
Constructors
ColliderDistanceInput(BlobAssetReference<Collider>, float, RigidTransform, float)
Constructor.
Declaration
public ColliderDistanceInput(BlobAssetReference<Collider> collider, float maxDistance, RigidTransform transform, float uniformScale = 1)
Parameters
Type | Name | Description |
---|---|---|
BlobAssetReference<Collider> | collider | The collider used to calculate distance from. |
float | maxDistance | The maximum distance. |
RigidTransform | transform | The transform. of the collider |
float | 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 |
---|---|
float |
Scale
The scale of the collider.
Declaration
public float Scale
Field Value
Type | Description |
---|---|
float |
Transform
The transform of the collider.
Declaration
public RigidTransform Transform
Field Value
Type | Description |
---|---|
RigidTransform |