raw library

The native physics world, by ids, for package:fynkel_physics's own tests and the bench. Each RawPhysics() is a world of its own, with nothing to do with a game's world.physics: it can't reach that one's bodies or colliders. A game uses package:fynkel_physics/fynkel_physics.dart, which has PhysicsException and its PhysicsStatus too.

Classes

RawPhysics
A physics world in the native library, used through ids: the layer the game's colliders and rigidbodies are built on. A step's moved bodies are read from one buffer (step, then movedKey and the rest), so a step is two calls however many bodies there are.

Enums

BodyKind
What moves a body.
PhysicsStatus
Why a call into the physics failed: FpStatus in crates/fynkel_physics_ffi/include/fynkel_physics.h, by its code. The ones the engine has too have its numbers.

Exceptions / Errors

PhysicsException
The physics itself failed: a panic, or a world a panic left in doubt. A game's own mistakes throw Dart's errors instead: an ArgumentError for a bad value, a StateError for a call at the wrong time or on something gone. status says which failure; message is the physics' own explanation.