Granular physics controls: persistent body force, authored principal inertia, and average restitution combining
Raw Developer Origin & Technical Request
GitHub Issue
Nov 11, 2026
### What happened
Porting a cannon-es game needs three body controls that Exact does not expose:
- A persistent force at the centre of mass. A held die is pulled by a spring force each step
(`body.applyForce`). Writing `Body.velocity` instead overrides the contact response, so a held
die cannot knock other dice correctly.
- Authored principal inertia. The original authored exact inertia per die. Parry estimates it
from the collider (see #71 for the rounded-hull error).
- Average restitution combining. cannon-es defines restitution per material pair. With Rapier's
`Max` rule, the felt (no bounce) and the dice (0.42) cannot give a pair value of 0.21.
### Expected
Opt-in fields that are left out of the saved encoding at their defaults, so existing saves and
hashes keep their bytes:
```rust
pub struct Body {
/// Persistent world-space force at the centre of mass, in newtons.
pub force: Vec3,
/// Principal inertia in the body's local frame; all zero derives it from the collider.
pub inertia: Vec3,
// …
}
pub struct Collider {
/// Combine restitution by the average; both colliders must opt in.
pub bounce_average: bool,
// …
}
```
A set force persists until it is cleared and replays exactly after a restore
(`center_force_persists_until_cleared_and_replays`). Omitted controls round-trip through JSON
and binary encodings (`optional_force_and_inertia_round_trip`).
### Measurements
With these controls, Felt's held die follows the original'...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from expo/exact.
Frequently Asked Questions
Market intelligence mapped to Granular physics controls: persistent body force, authored principal inertia, and average restitution combining.
How is Granular physics controls: persistent body force, authored principal inertia, and average restitution combining positioned in the market?
Are engineers actively discussing Granular physics controls: persistent body force, authored principal inertia, and average restitution combining?
Which technical concepts are associated with Granular physics controls: persistent body force, authored principal inertia, and average restitution combining?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like JSON and collider in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- JSON: 84 records
- collider: 2 records
- persistent force at the centre of mass: 1 records
- body.applyForce: 1 records
- Body.velocity: 1 records
- contact response: 1 records
- Authored principal inertia: 1 records
- rounded-hull error: 1 records
- Average restitution combining: 1 records
- material pair: 1 records
- Rapier's Max rule: 1 records
- Vec3: 1 records
- saved encoding: 1 records
- binary encodings: 1 records
SaaS Metrics