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