Core declares the physics role: Physics_Interface, Rigidbody, Box_Collider (#69) #101
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!101
Loading…
Reference in a new issue
No description provided.
Delete branch "physics-role-declaration"
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 #69. Part of #67.
Core reserves
cinnabar.physics/1and the Schema namescinnabar.rigidbodyandcinnabar.box_collider, and declaresPhysics_Interface,Rigidbody,Box_Collider,Body_TypeandRay_Hitin the ABI Surface. Core registers nothing: with no physics Plugin listed the Interface is not found and both Schemas are absent.Tests
tests/core/physics_abi_test.odincovers the acceptance criteria: ABI closure over the new types, the reserved names, the field set with transient flags on the body and shape ids, and absence of the role Headless. The closure helpers in the Scene ABI test are shared rather than file-private so the physics types are checked the same way.Docs
Glossary entries for Physics Interface, Rigidbody, Collider, Implicit Static Body and Body User Tag; the Interface entry names Physics as a Core-declared role. A dated note on ADR-0003. ADR-0016's heading reads 0016 and its citation of the uncommitted research note is reworded.
Note
Rigidbody.static_bodyfollows the issue's "transient body ids" wording. The parent issue's description of that field is self-contradictory, so it is given the one coherent meaning: the Implicit Static Body's id, held while the Plugin migrates colliders onto the real body. The Plugin issue can drop it if it turns out unneeded.