Interface ICollidable
Namespace: Unity.Physics
Syntax
public interface ICollidable
Methods
CalculateAabb()
Declaration
Aabb CalculateAabb()
Returns
| Type | Description |
|---|---|
| Aabb |
CalculateAabb(RigidTransform)
Declaration
Aabb CalculateAabb(RigidTransform transform)
Parameters
| Type | Name | Description |
|---|---|---|
| Unity.Mathematics.RigidTransform | transform |
Returns
| Type | Description |
|---|---|
| Aabb |
CalculateDistance(ColliderDistanceInput)
Declaration
bool CalculateDistance(ColliderDistanceInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderDistanceInput | input |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculateDistance(ColliderDistanceInput, ref NativeList<DistanceHit>)
Declaration
bool CalculateDistance(ColliderDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderDistanceInput | input | |
| NativeList<DistanceHit> | allHits |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculateDistance(ColliderDistanceInput, out DistanceHit)
Declaration
bool CalculateDistance(ColliderDistanceInput input, out DistanceHit closestHit)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderDistanceInput | input | |
| DistanceHit | closestHit |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculateDistance(PointDistanceInput)
Declaration
bool CalculateDistance(PointDistanceInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| PointDistanceInput | input |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculateDistance(PointDistanceInput, ref NativeList<DistanceHit>)
Declaration
bool CalculateDistance(PointDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
| Type | Name | Description |
|---|---|---|
| PointDistanceInput | input | |
| NativeList<DistanceHit> | allHits |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculateDistance(PointDistanceInput, out DistanceHit)
Declaration
bool CalculateDistance(PointDistanceInput input, out DistanceHit closestHit)
Parameters
| Type | Name | Description |
|---|---|---|
| PointDistanceInput | input | |
| DistanceHit | closestHit |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculateDistance<T>(ColliderDistanceInput, ref T)
Declaration
bool CalculateDistance<T>(ColliderDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderDistanceInput | input | |
| T | collector |
Returns
| Type | Description |
|---|---|
| Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |
CalculateDistance<T>(PointDistanceInput, ref T)
Declaration
bool CalculateDistance<T>(PointDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
| Type | Name | Description |
|---|---|---|
| PointDistanceInput | input | |
| T | collector |
Returns
| Type | Description |
|---|---|
| Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |
CastCollider(ColliderCastInput)
Declaration
bool CastCollider(ColliderCastInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderCastInput | input |
Returns
| Type | Description |
|---|---|
| Boolean |
CastCollider(ColliderCastInput, ref NativeList<ColliderCastHit>)
Declaration
bool CastCollider(ColliderCastInput input, ref NativeList<ColliderCastHit> allHits)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderCastInput | input | |
| NativeList<ColliderCastHit> | allHits |
Returns
| Type | Description |
|---|---|
| Boolean |
CastCollider(ColliderCastInput, out ColliderCastHit)
Declaration
bool CastCollider(ColliderCastInput input, out ColliderCastHit closestHit)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderCastInput | input | |
| ColliderCastHit | closestHit |
Returns
| Type | Description |
|---|---|
| Boolean |
CastCollider<T>(ColliderCastInput, ref T)
Declaration
bool CastCollider<T>(ColliderCastInput input, ref T collector)
where T : struct, ICollector<ColliderCastHit>
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderCastInput | input | |
| T | collector |
Returns
| Type | Description |
|---|---|
| Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |
CastRay(RaycastInput)
Declaration
bool CastRay(RaycastInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastInput | input |
Returns
| Type | Description |
|---|---|
| Boolean |
CastRay(RaycastInput, ref NativeList<RaycastHit>)
Declaration
bool CastRay(RaycastInput input, ref NativeList<RaycastHit> allHits)
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastInput | input | |
| NativeList<RaycastHit> | allHits |
Returns
| Type | Description |
|---|---|
| Boolean |
CastRay(RaycastInput, out RaycastHit)
Declaration
bool CastRay(RaycastInput input, out RaycastHit closestHit)
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastInput | input | |
| RaycastHit | closestHit |
Returns
| Type | Description |
|---|---|
| Boolean |
CastRay<T>(RaycastInput, ref T)
Declaration
bool CastRay<T>(RaycastInput input, ref T collector)
where T : struct, ICollector<RaycastHit>
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastInput | input | |
| T | collector |
Returns
| Type | Description |
|---|---|
| Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |