Struct ColliderCastInput
The input to collider cast queries consists of a Collider and its initial orientation, and the Start & End positions of a line segment the Collider is to be swept along.
Inherited Members
Namespace: Unity.Physics
Syntax
public struct ColliderCastInput
Constructors
ColliderCastInput(BlobAssetReference<Collider>, float3, float3)
Constructor.
Declaration
public ColliderCastInput(BlobAssetReference<Collider> collider, float3 start, float3 end)
Parameters
Type | Name | Description |
---|---|---|
BlobAssetReference<Collider> | collider | The collider to cast with. |
float3 | start | The starting point. |
float3 | end | The ending point. |
ColliderCastInput(BlobAssetReference<Collider>, float3, float3, quaternion, Single)
Constructor.
Declaration
public ColliderCastInput(BlobAssetReference<Collider> collider, float3 start, float3 end, quaternion orientation, float queryColliderScale = 1F)
Parameters
Type | Name | Description |
---|---|---|
BlobAssetReference<Collider> | collider | The collider to cast with. |
float3 | start | The starting point. |
float3 | end | The ending point. |
quaternion | orientation | The orientation of the collider. |
Single | queryColliderScale | (Optional) The collider scale. |
Fields
Collider
Gets or sets the collider used to cast with.
Declaration
[NativeDisableUnsafePtrRestriction]
public Collider*Collider
Field Value
Type | Description |
---|---|
Collider* | The collider to cast with. |
Properties
End
Gets or sets the ending point of a cast.
Declaration
public float3 End { get; set; }
Property Value
Type | Description |
---|---|
float3 | The ending point. |
Orientation
Gets or sets the orientation of the collider used to cast with.
Declaration
public quaternion Orientation { get; set; }
Property Value
Type | Description |
---|---|
quaternion | The orientation. |
QueryColliderScale
Gets or sets the query collider scale.
Declaration
public float QueryColliderScale { get; set; }
Property Value
Type | Description |
---|---|
Single | The query collider scale. |
Start
Gets or sets the starting point of a cast.
Declaration
public float3 Start { get; set; }
Property Value
Type | Description |
---|---|
float3 | The starting point. |
Methods
ToString()
Convert this object into a string representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents this object. |