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)
- Simplest possible Bevy app causing console to be full of errors. HOT 13
- `DirX::new` should be more explicit about normalization and have a code example HOT 1
- Failed loading libxkbcommon.so.0 HOT 5
- Multiple cameras results in multiple writes to swap chain HOT 1
- Trait fn returning `impl Fn()` cannot be used as a system when called from generic type HOT 4
- Main branch fails to compile on Rust beta.
- Add a builder API to `LoadContext` HOT 1
- Auto exposure breaks when object is too dark HOT 2
- Very Large Material 2d Mesh diagonal artifact issue HOT 2
- Bevy has too many rectangle / box types HOT 5
- Move `bevy_math`'s implementations of `Reflect` into `bevy_math` HOT 1
- Allow access to Arc<CustomAttributes>. HOT 2
- Document that zero-length reflection paths are allowed. HOT 5
- `EMPTY` rect has suboptimal values HOT 3
- High performance sorted queries HOT 15
- Add `World::resource_scope_by_id` HOT 2
- Image loading docs are not clear enough about required feature flags HOT 4
- Squircle / Superellipse for UI / Gizmos / Mesh HOT 7
- Parent device is lost HOT 2
- Add additional names to GLTF entities for easier querying
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.