/* Set the collider position inside of a system. */
fn modify_collider_position(mut positions: Query<&mut Transform, With<Collider>) { // <<<<MISSING A CLOSING ANGLE BRACKET
for mut position in positions.iter_mut() {
position.translation.x = 2.0;
}
}
should be :
fn modify_collider_position(mut colliders: Query<&mut Transform, With<Collider>>) {
for mut position in colliders.iter_mut() {
position.translation.x = 2.0;
}
}
missing closing > bracket.
Cannot see how to file a PR directly for those docs so @dimforge folk.
Thank you for pointing this out. This is fixed now. PRs affecting the website can target the website’s repository: https://github.com/dimforge/rapier.rs
is:
should be :
missing closing > bracket.
Cannot see how to file a PR directly for those docs so @dimforge folk.