![]() |
Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
|
Provides collision detection capabilities for a Tile by implementing the ICollider interface. More...
Public Member Functions | |
| TileCollider (Tile tile, int collisionGroup, int collidesWith, CollisionResponseType responseType=CollisionResponseType.Solid) | |
| Initializes a new instance of the TileCollider class for the specified tile. | |
Properties | |
| 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.
Definition at line 8 of file TileCollider.cs.
| 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.
| 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. |
| ArgumentNullException | Thrown when tile is null. |
Definition at line 20 of file TileCollider.cs.
|
get |
Gets the world-space axis-aligned bounding box in scene world pixels.
Implements Gondwana.Physics.Collisions.ICollider.
Definition at line 31 of file TileCollider.cs.
|
getset |
Gets or sets the bitmask of collision groups this collider interacts with.
Implements Gondwana.Physics.Collisions.ICollider.
Definition at line 51 of file TileCollider.cs.
|
getset |
Gets or sets the bitmask identifying what this collider is (e.g., Player = 1, World = 2, Enemy = 4).
Implements Gondwana.Physics.Collisions.ICollider.
Definition at line 46 of file TileCollider.cs.
|
get |
Gets a value indicating whether this is a static, non-moving collider based on the tile's fixed position state.
Implements Gondwana.Physics.Collisions.ICollider.
Definition at line 41 of file TileCollider.cs.
|
get |
Gets the tile that owns this collider.
Implements Gondwana.Physics.Collisions.ICollider.
Definition at line 36 of file TileCollider.cs.
|
getset |
Gets or sets how this collider responds to collisions (Solid blocks movement, Trigger reports only).
Implements Gondwana.Physics.Collisions.ICollider.
Definition at line 56 of file TileCollider.cs.