Skip to content

Commit 77a6bb7

Browse files
committed
[add] initial specification for 2d collision events
1 parent f3c56aa commit 77a6bb7

3 files changed

Lines changed: 488 additions & 13 deletions

File tree

docs/features.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ title: "Cargo Features Overview"
33
document_id: "features-2025-11-17"
44
status: "living"
55
created: "2025-11-17T23:59:00Z"
6-
last_updated: "2026-03-14T22:54:24Z"
7-
version: "0.1.17"
6+
last_updated: "2026-03-25T16:39:52Z"
7+
version: "0.1.18"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"
1010
shader_backend_default: "naga"
1111
winit_version: "0.29.10"
12-
repo_commit: "23dc1cbe0b87e772e92071ad170dfb70ced36f88"
12+
repo_commit: "f3c56aaa0985993cc7e751865913e7a2ef27040e"
1313
owners: ["lambda-sh"]
1414
reviewers: ["engine", "rendering"]
1515
tags: ["guide", "features", "validation", "cargo", "audio", "physics"]
1616
---
1717

1818
## Overview
1919
This document enumerates the primary Cargo features exposed by the workspace
20-
relevant to rendering, validation, and audio behavior. It defines defaults,
21-
relationships, and expected behavior in debug and release builds.
20+
relevant to rendering, validation, audio, and physics behavior. It defines
21+
defaults, relationships, and expected behavior in debug and release builds.
2222

2323
## Table of Contents
2424
- [Overview](#overview)
@@ -91,11 +91,16 @@ Physics
9191
- `physics-2d` (umbrella, disabled by default): enables the 2D physics world
9292
APIs (for example, `lambda::physics::PhysicsWorld2D`,
9393
`lambda::physics::RigidBody2D`, `lambda::physics::Collider2D`, and
94-
`lambda::physics::Collider2DBuilder`). This feature enables the platform
95-
physics backend via `lambda-rs-platform/physics-2d` (currently backed by
96-
`rapier2d`). Expected runtime cost depends on simulation workload, collider
97-
count, and contact density; no runtime cost is incurred unless a physics
98-
world is constructed, populated, and stepped.
94+
`lambda::physics::Collider2DBuilder`). This feature also covers collision
95+
event delivery (`PhysicsWorld2D::collision_events()`), per-collider
96+
collision filtering (`CollisionFilter`,
97+
`Collider2DBuilder::with_collision_filter()`), and read-only spatial queries
98+
(`PhysicsWorld2D::{query_point,query_aabb,raycast}`). This feature enables
99+
the platform physics backend via `lambda-rs-platform/physics-2d` (currently
100+
backed by `rapier2d`). Expected runtime cost depends on simulation workload,
101+
collider count, contact density, event buffering, and query frequency; no
102+
runtime cost is incurred unless a physics world is constructed, populated,
103+
stepped, or queried.
99104

100105
Render validation
101106

@@ -175,6 +180,8 @@ Physics
175180
`rapier2d` directly via this crate.
176181

177182
## Changelog
183+
- 0.1.18 (2026-03-25): Expand `physics-2d` documentation to include collision
184+
events, collision filtering, and spatial queries.
178185
- 0.1.17 (2026-03-14): Update `physics-2d` coverage to include 2D colliders.
179186
- 0.1.16 (2026-02-13): Document 2D rigid bodies under `physics-2d` and update
180187
metadata.

docs/specs/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ title: "Specifications Index"
33
document_id: "specs-index-2026-02-07"
44
status: "living"
55
created: "2026-02-07T00:00:00Z"
6-
last_updated: "2026-02-17T23:08:44Z"
7-
version: "0.1.4"
8-
repo_commit: "43c91a76dec71326cc255ebb6fb6c6402e95735c"
6+
last_updated: "2026-03-25T16:39:52Z"
7+
version: "0.1.5"
8+
engine_workspace_version: "2023.1.30"
9+
wgpu_version: "26.0.1"
10+
shader_backend_default: "naga"
11+
winit_version: "0.29.10"
12+
repo_commit: "f3c56aaa0985993cc7e751865913e7a2ef27040e"
913
owners: ["lambda-sh"]
1014
reviewers: ["engine"]
1115
tags: ["index", "specs", "docs"]
@@ -36,7 +40,13 @@ tags: ["index", "specs", "docs"]
3640
- 2D Physics World — [physics/physics-world-2d.md](physics/physics-world-2d.md)
3741
- 2D Rigid Bodies — [physics/rigid-bodies-2d.md](physics/rigid-bodies-2d.md)
3842
- 2D Colliders — [physics/colliders-2d.md](physics/colliders-2d.md)
43+
- 2D Collision Queries and Events — [physics/collision-queries-and-events-2d.md](physics/collision-queries-and-events-2d.md)
3944

4045
## Templates
4146

4247
- Specification template — [_spec-template.md](_spec-template.md)
48+
49+
## Changelog
50+
51+
- 0.1.5 (2026-03-25): Add the 2D collision queries and events specification
52+
and align metadata with the long-lived documentation requirements.

0 commit comments

Comments
 (0)