Interface ICollidable
An entity that may collide with another entity.
Inherited Members
Namespace: Mars.Components.Environments.Cartesian
Assembly: Mars.Components.dll
Syntax
public interface ICollidable : IEntity, IModelObject
Methods
| Improve this Doc View SourceHandleCollision(IEntity)
Is called on collision with another entity.
Declaration
CollisionKind? HandleCollision(IEntity collisionEntity)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | collisionEntity | The other entity that collides with this one. |
Returns
| Type | Description |
|---|---|
| System.Nullable<CollisionKind> | The collision kind that represents the continuing action; null if no collision handle is defined. |