MCPcopy Create free account
hub / github.com/esengine/esengine / hasCollisionAt

Method hasCollisionAt

packages/tilemap/src/TilemapComponent.ts:881–884  ·  view source on GitHub ↗

* Check collision at world coordinates * 检查世界坐标处的碰撞

(worldX: number, worldY: number)

Source from the content-addressed store, hash-verified

879 * 检查世界坐标处的碰撞
880 */
881 hasCollisionAt(worldX: number, worldY: number): boolean {
882 const [col, row] = this.worldToTile(worldX, worldY);
883 return this.hasCollision(col, row);
884 }
885
886 /**
887 * Get all collision tiles within bounds

Callers

nothing calls this directly

Calls 2

worldToTileMethod · 0.95
hasCollisionMethod · 0.95

Tested by

no test coverage detected