dimforge / rapier

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

Getting started page code is outdated #459

Closed frederickjjoubert closed 1 year ago

frederickjjoubert commented 1 year ago

On the getting started page for rapier_2d the example code

[dependencies]
# TODO: Replace the * by the latest version numbers.
bevy = "*"
bevy_rapier2d = { version = "*", features = [ "simd-stable", "debug-render" ] }

is wrong / out of date.

It needs to be

[dependencies]
# TODO: Replace the * by the latest version numbers.
bevy = "*"
bevy_rapier2d = { version = "*", features = [ "simd-stable", "debug-render-2d" ] }

or you will get the error: failed to select a version for "bevy_rapier2d" error.

See https://discord.com/channels/507548572338880513/748627261384556715/1080610679184183326

akappel commented 1 year ago

I actually created a PR for this a couple weeks ago; still waiting for the thumbs up: https://github.com/dimforge/rapier.rs/pull/58

sebcrozet commented 1 year ago

Closing this since https://github.com/dimforge/rapier.rs/pull/58 is merged both. Thank you both!