Skip to content

Add friction, collision callbacks and slope-aware physics APIs - #84

Merged
JamieW105 merged 2 commits into
mainfrom
feat/physics-surfaces
Nov 2, 2026
Merged

JamieW105 merged 2 commits into
mainfrom
feat/physics-surfaces

Conversation

@JamieW105

@JamieW105 JamieW105 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Rotated ramps previously collided as world-aligned boxes, with no friction or live contact notifications. Add translational oriented-box collision and swept collision checks, Coulomb friction, and rotated ray/sphere casts. Friction persists as a backward-compatible part attribute and can be edited through scripts, the Inspector, or agent object updates.

Expose collision enter/stay/exit subscriptions and ground support queries across the scripting SDKs. Ground queries return the support normal, slope angle and whether it meets a caller-selected walking limit. Collision subscriptions use the existing owner-managed event dispatcher; bodies retain unit mass and have no angular dynamics. Overlap/explosion searches still use conservative AABBs. Update engine documentation and agent authoring guidance, and make empty Lua/Luau query results return nil.

Validation:

  • 196 local engine play, scripting and world library tests passed, including seven available language adapters and friction, ramp, cast, contact-transition and scene-compatibility regressions.
  • Strict Clippy for the editor and changed crates, plus the separate Luau host; editor compile check; Rust formatting.
  • Full Linux and Windows workspace tests, rendering checks, application smoke checks, browser export, language adapter conformance and repository checks passed in CI.
  • Windows installer built successfully and packaged Setup/toolchain tests passed. Fresh artifact: RusticGameEngine-Setup-0.1.0-x64-20261102-035158.exe, available in the windows-installer artifact on the validation run.

@JamieW105
JamieW105 merged commit 0734a54 into main Nov 2, 2026
9 of 10 checks passed
@github-actions
github-actions Bot deleted the feat/physics-surfaces branch November 2, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants