GithubHelp home page GithubHelp logo

Comments (2)

HDictus avatar HDictus commented on September 17, 2024 1

Hey Alexmozaidze, thanks for your feedback.

Ah, that isn't actually intended usage but I can absolutely see why you go that from the README. The ... should contain whatever args should be passed love.physics.newBody, which for e.g. polygon can accept either vertex positions x1, y1, x2, y2... or vertices as a table {x1, y1, x2, y2, ...}. The implementation you propose would break that, and also break the intended usage world, "Circle", 0, 0, 20 . We could come up with something more complex to fit all usecases, but since this function is deprecated I would prefer to just remove it soon.

to avoid confusion caused by this function and allow passing subsequent args (e.g. table_to_use), world:newCollider() takes the newBody args as a table only (so {x1, y1, x2, y2, ...} or {{x1, y1, x2, y2, ...}}, and bf.Collider.new is deprecated, and may be removed in a later version. I'll add a proper statement of warning to it and remove it from the README.

from breezefield.

HDictus avatar HDictus commented on September 17, 2024

see #19

from breezefield.

Related Issues (7)

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.