10 private readonly
Tile _tile;
22 _tile = tile ??
throw new ArgumentNullException(nameof(tile));
CollisionResponseType ResponseType
Gets or sets how this collider responds to collisions (Solid blocks movement, Trigger reports only).
Aabb BoundsWorldPx
Gets the world-space axis-aligned bounding box in scene world pixels.
ICollisionEntity Owner
Gets the tile that owns this collider.
int CollidesWith
Gets or sets the bitmask of collision groups this collider interacts with.
bool IsStatic
Gets a value indicating whether this is a static, non-moving collider based on the tile's fixed posit...
int CollisionGroup
Gets or sets the bitmask identifying what this collider is (e.g., Player = 1, World = 2,...
TileCollider(Tile tile, int collisionGroup, int collidesWith, CollisionResponseType responseType=CollisionResponseType.Solid)
Initializes a new instance of the TileCollider class for the specified tile.
Represents an abstract base class for drawable tiles in the Gondwana engine. Provides core functional...
World-space axis-aligned collider used by the collision system.
Represents an entity that participates in the collision system and has a defined collision area.
CollisionResponseType
Defines how a collider responds to collisions with other colliders.
Represents an axis-aligned bounding box (AABB) defined by its minimum and maximum coordinates along t...
static Aabb FromRectangle(Rectangle r)
Creates an Aabb from a Rectangle.