Giter Site home page Giter Site logo

Comments (5)

codynova avatar codynova commented on May 25, 2024 2

Hi @OliverXH, as @swift502 mentioned, your demo is running cannon (cannon.js) and not cannon-es. I believe the collision issues should be resolved in this lib. I'm closing this for now, but if you find bugs with cannon-es please feel free to open an issue - or ping me here if this should be reopened.

from cannon-es.

marcofugaro avatar marcofugaro commented on May 25, 2024 1

The convex body collisions still look fine in cannon-es:

https://raw.githack.com/react-spring/cannon-es/examples-update/examples/stacks.html

The demo you provided has too much stuff going on to be able to debug. If you can provide a minimal example like the example I posted, running cannon-es, and with the issue happening, we might consider looking at it.

from cannon-es.

swift502 avatar swift502 commented on May 25, 2024

Can confirm this is a big issue in Cannon. Convex v Convex and Box v Convex seem to be broken in subtle ways.
@robrohan tackled this in Dapao, however apparently unsuccessfully.

The supplied demo seems to be running Cannon? So we can port to cannon-es to see if the issue persists.
If this problem is resolved, I will definitely switch cannon-es myself. 👍

from cannon-es.

swift502 avatar swift502 commented on May 25, 2024

I tried porting the demo but I can't get the collisions to work at all. The ramp just falls through the floor with cannon-es.
Tried my best. I guess the convex body creation process has changed a bit since cannon...

from cannon-es.

codynova avatar codynova commented on May 25, 2024

There are a couple API updates in cannon-es that are mentioned in the readme. For ConvexPolyhedron, the constructor API has been standardized to take an options object as the argument. You can check out the constructor in the source code, it supports pretty much all the same options as Cannon.js.

from cannon-es.

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.