Crate resphys

Source

Modules§

builder

Structs§

AABB
Body
Describes a body.
BodyHandle
Unique identifier of a body stored in the world. If it gets removed the identifier will be reused.
BodySet
Container for bodies, removal is currently performed through PhysicsWorld, but access and modification is possible through this structure
Collider
Describes a collider in the shape of Shape. Attached to a body.
ColliderHandle
Unique identifier of a collider stored in the world. If it gets removed the identifier will be reused.
ColliderSet
Container for colliders, removal is currently performed through PhysicsWorld, but access and modification is possible through this structure
CollisionGraph
Structure for storing informations about the active collisions.
Currently unaware of anything besides the handles that collide or whether the collision started this frame.
Stores result of broadphase that narrowphase should use.
CollisionInfo
Minimal structure containing only the most important information about the collision.
ContactManifold
PhysicsWorld
T - User supplied type used as a tag, present in all events
Ray
Raycast

Enums§

BodyStatus
Status of the body, determines how it’s affected by other bodies.
ColliderState
State of the collider, determines default collision resolution and types of events sent.
ContactEvent
Event generated by the collision engine.
In case of an overlap between a solid body and sensor the solid body is guaranteed to be the first handle.
Interaction

Functions§

collision_manifold
Generates a ContactManifold if two Colliders collided.
contact_aabb_aabb
contact_ray_aabb
intersection_aabb_aabb
is_colliding
Boolean test whether two Colliders collided.
is_penetrating