Skip to main content

Module physics

Module physics 

Source
Expand description

Scene physics module.

Structs§

ContactData
Data of the contact.
ContactManifold
A contact manifold between two colliders.
ContactPair
Contact info for pair of colliders.
IntegrationParameters
Parameters for a time-step of the physics engine.
Intersection
A ray intersection result.
IntersectionPair
Intersection info for pair of colliders.
PhysicsPerformanceStatistics
Performance statistics for the physics part of the engine.
PhysicsWorld
Physics world is responsible for physics simulation in the engine. There is a very few public methods, mostly for ray casting. You should add physical entities using scene graph nodes, such as RigidBody, Collider, Joint.
QueryFilter
A filter tha describes what collider should be included or excluded from a scene query.
RayCastOptions
A set of options for the ray cast.
TOI
The result of a time-of-impact (TOI) computation.

Enums§

CoefficientCombineRule
Rules used to combine two coefficients.
FeatureId
Shape-dependent identifier.
ShapeType
Enum representing the type of a shape.
TypedShape
Enum representing the shape with its actual type

Traits§

QueryResultsStorage
A trait for ray cast results storage. It has two implementations: Vec and ArrayVec. Latter is needed for the cases where you need to avoid runtime memory allocations and do everything on stack.
Shape
Trait implemented by shapes usable by Rapier.