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)
- Allow Events to opt out of being targeted or untargeted for Observers HOT 1
- Implement Reflect for std::ops::Bound
- `Slab not found` error when running the `loading_screen` example. HOT 2
- Better `Dynamic*` mutable iteration HOT 1
- Easy reflection type traversal utils HOT 2
- Update/change fields of a reflected/dynamic type HOT 1
- `AnimationPlayer` doesn't explain how it is created
- Improve ergonomics for single-section `Text`s HOT 8
- `FromWorld` should mention how it works with `Default`
- multiple queries / SystemParam from `DeferredWorld` HOT 1
- Make `HierarchyQueryExt` work with `QueryState` HOT 2
- Bevy has no clear schedule for updating a camera's `Transform` when using a fixed time step HOT 6
- GenerateTangents in 0.14.1 can panic even though it is supposed to return Result HOT 7
- Split up `TextSection` into separate components HOT 1
- Proposal: `color!` macro HOT 8
- Ruby text support HOT 1
- Should EntityCommands consume self? HOT 5
- Remove duplicated CONTRIBUTING information HOT 3
- World::trigger variant that takes a &mut impl Event
- Much of the `bevy_animation` functionality is only accessible through `bevy_animation::prelude`
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.