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

Definition at line 8 of file TileCollider.cs.

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.

Definition at line 20 of file TileCollider.cs.

Property Documentation

◆ BoundsWorldPx

Aabb Gondwana.Drawing.Collisions.TileCollider.BoundsWorldPx
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.

◆ CollidesWith

int Gondwana.Drawing.Collisions.TileCollider.CollidesWith
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.

◆ 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.Physics.Collisions.ICollider.

Definition at line 46 of file TileCollider.cs.

◆ 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.Physics.Collisions.ICollider.

Definition at line 41 of file TileCollider.cs.

◆ Owner

ICollisionEntity Gondwana.Drawing.Collisions.TileCollider.Owner
get

Gets the tile that owns this collider.

Implements Gondwana.Physics.Collisions.ICollider.

Definition at line 36 of file TileCollider.cs.

◆ 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.Physics.Collisions.ICollider.

Definition at line 56 of file TileCollider.cs.