Giter Club home page Giter Club logo

Comments (7)

Lusito avatar Lusito commented on July 23, 2024 1

@8Observer8 It seems npm had some issue installing. Have you tried just running npm install again?

Edit: Nevermind, you installed version 0.10 of the core library, but you didn't install @box2d/debug-draw

Try running npm install @box2d/debug-draw

from box2d.ts.

Lusito avatar Lusito commented on July 23, 2024 1

Just FYI, anything with an @ in front is a scope (think of it like a company/project prefix). I.e. @box2d is not a package, but rather @box2d/core, @box2d/lights, @box2d/particles, @box2d/controllers and @box2d/debug-draw are all separate packages you need to install separately.

from box2d.ts.

Lusito avatar Lusito commented on July 23, 2024

Yes, I've thought about this too, back when I started this project. It wasn't easily possible then though. Can't remember the exact problems I faced. But I will take another look when I find some time.

from box2d.ts.

8Observer8 avatar 8Observer8 commented on July 23, 2024

These screenshots show how important it is to be able to draw colliders:

image

image

from box2d.ts.

Lusito avatar Lusito commented on July 23, 2024

I've just released @box2d/debug-draw, check the documentation here:
https://lusito.github.io/box2d.ts/docs/guide/debug-draw/

from box2d.ts.

8Observer8 avatar 8Observer8 commented on July 23, 2024

I installed 0.10.0:

image

But I have the error:

image

I do not have the debug-draw folder inside of @box2d:

image

from box2d.ts.

8Observer8 avatar 8Observer8 commented on July 23, 2024

I thought it would be like in C++. But okay, it's better than nothing. Thank you.

from box2d.ts.

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.