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 |
---|---|
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 |
---|---|
int | The size of the memory. |
Type
Gets the collider type.
Declaration
ColliderType Type { get; }
Property Value
Type | Description |
---|---|
ColliderType | Collider type. |
Methods
BakeTransform(AffineTransform)
Bakes the provided transformation into the collider geometry.
Applies the transformation to the collider in local space, consequently scaling, shearing, rotating and translating its geometry exactly or approximately depending on the type of the collider and its geometric representation.
Declaration
void BakeTransform(AffineTransform transform)
Parameters
Type | Name | Description |
---|---|---|
AffineTransform | transform | The affine transformation to apply. |
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. |