Comments (5)
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.
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.
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.
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.
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)
- Orientation of a body HOT 1
- Chaining Hinges behaviour
- [ Question ] Spheres going through body with mass equal zero
- penetrate explosion
- The movement of a spinning ball in cannon js has an unexpected deviation that depends on the direction of the movement itself
- can anyone help me about using webpack to use it in one js file ?
- Documentation question: After getting the red box wireframe working, and want to get gray boxes bouncing...
- ConvexPolyhedron: Tetrahedron working vs. not working HOT 3
- DisableMotor() method does not work in HingeConstraint. HOT 1
- RaycastVehicle: We have twice call updateWheelTransformWorld in updateWheelTransform(from updateVehicle) and then in castRay
- How can I get a list of bodies touching the line between two vectors?
- getVelocityAtWorldPoint() requires result parameter, despite returning result HOT 1
- Documentation for vectorToWorldFrame() incorrect
- Unknown Force is applied on some vertically stacked cubes on straight plane? HOT 3
- What are indices parameters of CANNON.Trimesh function?
- I added a model, I don't know why there is no physical characteristics
- About the basic parameter units of RaycastVehicle in canon-es
- ConvexPolyhedron isn't working for certain vertices
- The sphere flies away after a few seconds while the tab is not active HOT 1
- Implementation of third person controller. How to prevent character from rotating when moving at an angle to an incline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cannon-es.