Gondwana Game Engine
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, mobile, and web platforms using SkiaSharp for graphics and NAudio for sound.
Loading...
Searching...
No Matches
Gondwana.Drawing.Collisions.TileCollider Class Referencesealed

Provides collision detection capabilities for a Tile by implementing the ICollider interface. More...

Inheritance diagram for Gondwana.Drawing.Collisions.TileCollider:
Gondwana.Collisions.ICollider

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).

Detailed Description

Provides collision detection capabilities for a Tile by implementing the ICollider interface.

Constructor & Destructor Documentation

◆ 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
tileThe tile to provide collision detection for.
collisionGroupThe bitmask identifying what this collider is (e.g., Player = 1, World = 2).
collidesWithThe bitmask of collision groups this collider interacts with.
responseTypeThe type of collision response. Defaults to CollisionResponseType.Solid.
Exceptions
ArgumentNullExceptionThrown when tile is null.

Property Documentation

◆ BoundsWorldPx

Aabb Gondwana.Drawing.Collisions.TileCollider.BoundsWorldPx
get

Gets the world-space axis-aligned bounding box in scene world pixels.

Implements Gondwana.Collisions.ICollider.

◆ CollidesWith

int Gondwana.Drawing.Collisions.TileCollider.CollidesWith
getset

Gets or sets the bitmask of collision groups this collider interacts with.

Implements Gondwana.Collisions.ICollider.

◆ CollisionGroup

int Gondwana.Drawing.Collisions.TileCollider.CollisionGroup
getset

Gets or sets the bitmask identifying what this collider is (e.g., Player = 1, World = 2, Enemy = 4).

Implements Gondwana.Collisions.ICollider.

◆ 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

ICollisionEntity Gondwana.Drawing.Collisions.TileCollider.Owner
get

Gets the tile that owns this collider.

Implements Gondwana.Collisions.ICollider.

◆ ResponseType

CollisionResponseType Gondwana.Drawing.Collisions.TileCollider.ResponseType
getset

Gets or sets how this collider responds to collisions (Solid blocks movement, Trigger reports only).

Implements Gondwana.Collisions.ICollider.