dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.8k stars 236 forks source link

Typo in Docs for moving the Collider's Transform (bevy_rapier3d) #503

Closed alphastrata closed 5 months ago

alphastrata commented 1 year ago

is:

/* 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;
    }
}

image missing closing > bracket.

Cannot see how to file a PR directly for those docs so @dimforge folk.

sebcrozet commented 5 months ago

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