Skip to content

Commit 0361ea6

Browse files
committed
update a bit simulation structures doc, even though that's not used
1 parent 672a49b commit 0361ea6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/user_guides/templates/simulation_structures.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ This page describes <rapier> all the data structures needed for stepping the sim
1111
[basic simulation example](./getting_started.mdx#basic-simulation-example)</rapier><bevy> all the useful
1212
components and resources added automatically by the `RapierPhysicsPlugin`</bevy>.
1313

14+
<bevy>
15+
16+
## Rapier Context
17+
18+
The data structures handled by rapier for a specific context are stored in different components.
19+
20+
An ergonomic `QueryData` helper is provided to reduce boilerplate:
21+
See https://docs.rs/bevy_rapier3d/latest/bevy_rapier3d/plugin/context/systemparams/struct.RapierContext.html
22+
23+
</bevy>
1424

1525
## Gravity
1626
Gravity is represented as a vector. It affects every dynamic rigid-body taking part of the simulation. The gravity
@@ -61,7 +71,7 @@ fn print_active_bodies_positions(island_manager: Res<IslandManager>, positions:
6171
Learn more about sleeping rigid-bodies in [the dedicated section](./rigid_bodies.mdx#sleeping).
6272

6373
## Physics pipeline
64-
The `PhysicsPipeline` <bevy>resource</bevy> is responsible for tying everything together in order to run the physics simulation.
74+
The `PhysicsPipeline` <bevy>component</bevy> is responsible for tying everything together in order to run the physics simulation.
6575
It will take care of updating every data-structures mentioned in this page (except the other pipelines), running the collision-detection,
6676
running the force computation and integration, and running CCD resolution.
6777
<rapier>

0 commit comments

Comments
 (0)