Provides collision detection capabilities for a Tile by implementing the ICollider interface.
More...
|
| Aabb | BoundsWorldPx [get] |
| | Gets the world-space axis-aligned bounding box in scene world pixels.
|
| ICollisionEntity | Owner [get] |
| | Gets the tile that owns this collider.
|
| bool | IsStatic [get] |
| | Gets a value indicating whether this is a static, non-moving collider based on the tile's fixed position state.
|
| int | CollisionGroup [get, set] |
| | Gets or sets the bitmask identifying what this collider is (e.g., Player = 1, World = 2, Enemy = 4).
|
| int | CollidesWith [get, set] |
| | Gets or sets the bitmask of collision groups this collider interacts with.
|
| CollisionResponseType | ResponseType [get, set] |
| | Gets or sets how this collider responds to collisions (Solid blocks movement, Trigger reports only).
|
Provides collision detection capabilities for a Tile by implementing the ICollider interface.
◆ TileCollider()
| Gondwana.Drawing.Collisions.TileCollider.TileCollider |
( |
Tile | tile, |
|
|
int | collisionGroup, |
|
|
int | collidesWith, |
|
|
CollisionResponseType | responseType = CollisionResponseType::Solid ) |
Initializes a new instance of the TileCollider class for the specified tile.
- Parameters
-
| tile | The tile to provide collision detection for. |
| collisionGroup | The bitmask identifying what this collider is (e.g., Player = 1, World = 2). |
| collidesWith | The bitmask of collision groups this collider interacts with. |
| responseType | The type of collision response. Defaults to CollisionResponseType.Solid. |
- Exceptions
-
| ArgumentNullException | Thrown when tile is null. |
◆ BoundsWorldPx
| Aabb Gondwana.Drawing.Collisions.TileCollider.BoundsWorldPx |
|
get |
◆ CollidesWith
| int Gondwana.Drawing.Collisions.TileCollider.CollidesWith |
|
getset |
◆ CollisionGroup
| int Gondwana.Drawing.Collisions.TileCollider.CollisionGroup |
|
getset |
◆ IsStatic
| bool Gondwana.Drawing.Collisions.TileCollider.IsStatic |
|
get |
Gets a value indicating whether this is a static, non-moving collider based on the tile's fixed position state.
Implements Gondwana.Collisions.ICollider.
◆ Owner
◆ ResponseType