Giter Club home page Giter Club logo

Comments (4)

SkiFire13 avatar SkiFire13 commented on June 26, 2024 1

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.

GitGhillie avatar GitGhillie commented on June 26, 2024 1

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.

daresan avatar daresan commented on June 26, 2024

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.

mnmaita avatar mnmaita commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.