Struct MeshCollider
Syntax
public struct MeshCollider : ICompositeCollider, ICollider, ICollidable
Properties
CollisionType
Declaration
public CollisionType CollisionType { get; }
Property Value
Filter
Declaration
public CollisionFilter Filter { get; }
Property Value
MassProperties
Declaration
public MassProperties MassProperties { get; }
Property Value
MemorySize
Declaration
public int MemorySize { get; }
Property Value
NumColliderKeyBits
Declaration
public uint NumColliderKeyBits { get; }
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 |
Unity.Mathematics.RigidTransform |
transform |
|
Returns
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input)
Parameters
Returns
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input)
Parameters
Returns
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Implements
Declaration
public bool CalculateDistance<T>(ColliderDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type Parameters
Implements
Declaration
public bool CalculateDistance<T>(PointDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type Parameters
Implements
Declaration
public bool CastCollider(ColliderCastInput input)
Parameters
Returns
Implements
Declaration
public bool CastCollider(ColliderCastInput input, ref NativeList<ColliderCastHit> allHits)
Parameters
Returns
Implements
Declaration
public bool CastCollider(ColliderCastInput input, out ColliderCastHit closestHit)
Parameters
Returns
Implements
Declaration
public bool CastCollider<T>(ColliderCastInput input, ref T collector)
where T : struct, ICollector<ColliderCastHit>
Parameters
Returns
Type Parameters
Implements
Declaration
public bool CastRay(RaycastInput input)
Parameters
Returns
Implements
Declaration
public bool CastRay(RaycastInput input, ref NativeList<RaycastHit> allHits)
Parameters
Returns
Implements
Declaration
public bool CastRay(RaycastInput input, out RaycastHit closestHit)
Parameters
Returns
Implements
Declaration
public bool CastRay<T>(RaycastInput input, ref T collector)
where T : struct, ICollector<RaycastHit>
Parameters
Returns
Type Parameters
Implements
Create(NativeArray<float3>, NativeArray<int3>)
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> vertices, NativeArray<int3> triangles)
Parameters
Type |
Name |
Description |
NativeArray<Unity.Mathematics.float3> |
vertices |
|
NativeArray<Unity.Mathematics.int3> |
triangles |
|
Returns
Create(NativeArray<float3>, NativeArray<int3>, CollisionFilter)
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> vertices, NativeArray<int3> triangles, CollisionFilter filter)
Parameters
Returns
Create(NativeArray<float3>, NativeArray<int3>, CollisionFilter, Material)
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> vertices, NativeArray<int3> triangles, CollisionFilter filter, Material material)
Parameters
Returns
GetChild(ref ColliderKey, out ChildCollider)
Declaration
public bool GetChild(ref ColliderKey key, out ChildCollider child)
Parameters
Returns
GetLeaf(ColliderKey, out ChildCollider)
Declaration
public bool GetLeaf(ColliderKey key, out ChildCollider leaf)
Parameters
Returns
GetLeaves<T>(ref T)
Declaration
public void GetLeaves<T>(ref T collector)
where T : struct, ILeafColliderCollector
Parameters
Type |
Name |
Description |
T |
collector |
|
Type Parameters