Interface ICollider
Interface for colliders.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public interface ICollider : ICollidable
Properties
CollisionType
Gets the collision type.
Declaration
CollisionType CollisionType { get; }
Property Value
Type | Description |
---|---|
Collision |
Collision Type. |
MassProperties
Gets the mass properties.
Declaration
MassProperties MassProperties { get; }
Property Value
Type | Description |
---|---|
Mass |
The mass properties. |
MemorySize
The total size of the collider in memory.
Declaration
int MemorySize { get; }
Property Value
Type | Description |
---|---|
int | The size of the memory. |
Type
Gets the collider type.
Declaration
ColliderType Type { get; }
Property Value
Type | Description |
---|---|
Collider |
Collider type. |
Methods
GetCollisionFilter()
Gets the collision filter.
Declaration
CollisionFilter GetCollisionFilter()
Returns
Type | Description |
---|---|
Collision |
The collision filter. |
SetCollisionFilter(CollisionFilter)
Sets the collision filter.
Declaration
void SetCollisionFilter(CollisionFilter filter)
Parameters
Type | Name | Description |
---|---|---|
Collision |
filter | Specifies the filter. |