1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//! The physics solver responsible for simulating rigid body dynamics, contacts, and joints.
//!
//! See [`SolverPlugins`] for a plugin group that contains Avian's default solver plugins.
pub use *;
pub use SolverDiagnostics;
use crate::;
use ;
/// A plugin group that contains Avian's default solver plugins.
///
/// # Plugins
///
/// By default, the following plugins will be added:
///
/// | Plugin | Description |
/// | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
/// | [`SolverSchedulePlugin`] | Sets up the solver and substepping loop by initializing the necessary schedules, sets and resources. |
/// | [`SolverBodyPlugin`] | Manages [solver bodies](dynamics::solver::solver_body::SolverBody). |
/// | [`IntegratorPlugin`] | Handles motion caused by velocity, and applies external forces and gravity. |
/// | [`SolverPlugin`] | Manages and solves contacts, [joints](dynamics::joints), and other constraints. |
/// | [`CcdPlugin`] | Performs sweep-based [Continuous Collision Detection](dynamics::ccd) for bodies with the [`SweptCcd`] component. |
/// | [`IslandPlugin`] | Manages [simulation islands](dynamics::solver::islands) for sleeping and waking. |
/// | [`IslandSleepingPlugin`] | Manages sleeping and waking of [simulation islands](dynamics::solver::islands). |
/// | [`JointGraphPlugin`] | Manages the [`JointGraph`](joint_graph::JointGraph) for each joint type. |
/// | [`XpbdSolverPlugin`] | Solves joints using Extended Position-Based Dynamics (XPBD). Requires the `xpbd_joints` feature. |
///
/// Refer to the documentation of the plugins for more information about their responsibilities and implementations.