Git Product home page Git Product logo

Comments (5)

Vladar4 avatar Vladar4 commented on September 13, 2024

There's actually a primitive physics implemented already https://github.com/Vladar4/nimgame2/blob/master/nimgame2/entity.nim#L296 with the possibility of using something else.

from nimgame2.

hcorion avatar hcorion commented on September 13, 2024

Does it deal with collisions? The two objects in my game aren't colliding (ie when one hits the other it can't move any further). I made sure they had bounding boxes using the debug.

from nimgame2.

Vladar4 avatar Vladar4 commented on September 13, 2024

No, it does not work with the object interactions, just with a single objects. Anything else should be coded manually at this moment.

from nimgame2.

hcorion avatar hcorion commented on September 13, 2024

Ok, that's what I was wanting when I said Physics engine.

from nimgame2.

girvo avatar girvo commented on September 13, 2024

@hcorion I'd recommend taking a look at https://github.com/oprypin/nim-chipmunk

Chipmunk2D is a pretty excellent 2D physics engine, that shouldn't be too hard to slot into any game engine (depending). It's all proper rigid body, and has some amazing features. Take a look at this:

https://github.com/matkuki/chipmunk7_demos

from nimgame2.

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.