Struct BoxCollider
Syntax
public struct BoxCollider : IConvexCollider, ICollider, ICollidable
Properties
Center
Declaration
public float3 Center { get; set; }
Property Value
CollisionType
Declaration
public CollisionType CollisionType { get; }
Property Value
ConvexRadius
Declaration
public float ConvexRadius { get; set; }
Property Value
Type |
Description |
System.Single |
|
Filter
Declaration
public CollisionFilter Filter { get; set; }
Property Value
MassProperties
Declaration
public MassProperties MassProperties { get; }
Property Value
Material
Declaration
public Material Material { get; set; }
Property Value
MemorySize
Declaration
public int MemorySize { get; }
Property Value
Type |
Description |
System.Int32 |
|
Orientation
Declaration
public quaternion Orientation { get; set; }
Property Value
Type |
Description |
quaternion |
|
Size
Declaration
public float3 Size { get; set; }
Property Value
Type
Declaration
public ColliderType Type { get; }
Property Value
Methods
CalculateAabb()
Declaration
public Aabb CalculateAabb()
Returns
Implements
Declaration
public Aabb CalculateAabb(RigidTransform transform)
Parameters
Type |
Name |
Description |
RigidTransform |
transform |
|
Returns
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance<T>(ColliderDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public bool CalculateDistance<T>(PointDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public bool CastCollider(ColliderCastInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastCollider(ColliderCastInput input, ref NativeList<ColliderCastHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastCollider(ColliderCastInput input, out ColliderCastHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastCollider<T>(ColliderCastInput input, ref T collector)
where T : struct, ICollector<ColliderCastHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public bool CastRay(RaycastInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastRay(RaycastInput input, ref NativeList<RaycastHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastRay(RaycastInput input, out RaycastHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastRay<T>(RaycastInput input, ref T collector)
where T : struct, ICollector<RaycastHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Create(float3, quaternion, float3, Single, Nullable<CollisionFilter>, Nullable<Material>)
Declaration
public static BlobAssetReference<Collider> Create(float3 center, quaternion orientation, float3 size, float convexRadius, CollisionFilter? filter = default(CollisionFilter? ), Material? material = default(Material? ))
Parameters
Type |
Name |
Description |
float3 |
center |
|
quaternion |
orientation |
|
float3 |
size |
|
System.Single |
convexRadius |
|
System.Nullable<CollisionFilter> |
filter |
|
System.Nullable<Material> |
material |
|
Returns
Type |
Description |
BlobAssetReference<Collider> |
|