Comments (4)
You're using the 0.4 version of the rand
crate, which had a different API than the latest one (0.8), most notably gen_range
took two separate arguments min
and max
. I suggest you to depend on rand = "0.8"
or change the call to gen_range
to .gen_range(-0.1, 0.1)
That said, how is this an issue with Bevy (or even just related to Bevy)?
from bevy.
As mentioned in the readme you should clone this repo to run the examples.
If you want to copy the code into your own project, including the rand
dependency, you can look at the [dev-dependencies]
in the Cargo.toml of this repo. There you will find which version of rand
the Bevy example uses.
Let me know if that clears things up. IMO these are basic Rust/Cargo things, so adding documentation about this would only add noise.
from bevy.
I am not using rand, this example from bevy is using rand and there is no description anywhere of which version to use or whatever. So for me and any other bevy newbie this is absolutely a bevy issue and nothing else. Please put more effort in the documentation!
from bevy.
Closing this one as it's not a bug within Bevy. Feel free to reopen if there's more to it.
from bevy.
Related Issues (20)
- Add docs to `RawHandleWrapper::_window` field HOT 1
- Framerate drop after turning on WinitSettings::desktop_app() HOT 3
- Logging for system parameter validation should be configurable HOT 2
- Animation's reflection trait bounds can be simplified
- `NonEmptyEventReader` system parameter
- Respect `SystemParam::validate_param` for observers and other non-executor system runners
- `missing-metadata` workflow fails and posts a misleading comment if `Cargo` itself breaks HOT 1
- Horizontal scroll does not work in `scroll` example HOT 2
- Colored glass should cast colored shadows HOT 4
- Transmission / opacity should affect shadow strength HOT 2
- JS Bindings for BRP
- `bevy::diagnostic::FrameTimeDiagnosticsPlugin` cannot obtain true FPS with modifying `bevy::time::TimeUpdateStrategy` HOT 4
- Try optimizing animate_targets system HOT 3
- Add `world` and `world_mut` methods to `WorldChildBuilder` HOT 2
- Subassets of subassets do not work. HOT 1
- `cargo run -p ci` doesn't handle doc tests properly
- action.yml is not valid (schema)
- Render/Light layers data in shader example
- UI Grid Placement Styles should hold the calculated values during runtime. HOT 2
- Panic when using spawn command within Trigger<OnRemove> observer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.