Gravity, ray cast, and Scene Document round trip for physics Components (#73) #105
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/cinnabar!105
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-73-gravity-raycast-roundtrip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #73.
The box3d Plugin publishes
set_gravity,gravityandray_caston the Physics Interface. The ray cast normalises the direction, asks Box3D for the closest hit, and reads the Rigidbody Handle from the body's user tag; an Implicit Static Body sets its tag to null explicitly so its hit reports a Null Handle.Five Headless tests in
tests/core/box3d_plugin_test.odin, one per acceptance criterion:The document round trip needed no Plugin change: Core's transient flag already keeps
body,static_bodyandshapeout of the document.