Comments (3)
yeah, I think you're right.
JSContactListenerWithoutSolveCallbacks
was a quick, untested attempt of mine to satisfy this TODO from box2d.js:
https://github.com/kripken/box2d.js/blob/1e6e9da36a3160a9f40cda4cddcb4f83abb4d82c/Box2D_v2.3.1.idl#L33-L35
hmm, I also see that their [JSImplementation="b2ContactListener"]
s clash.
I think the best solution is to just delete JSContactListenerWithoutSolveCallbacks
— the performance problem it was designed to solve (eliminating WASM->JS calls) is not a problem nowadays.
if you construct a b2ContactListener
, I'm not sure (because of the clash) whether you'll end up with a JSContactListener
or a JSContactListenerWithoutSolveCallbacks
. if it's the former (i.e. solve callbacks are included), then I think this isn't very consequential (because you can implement the solve callbacks as a no-op if you want to ignore them). but if it's calling the latter, then solve callbacks won't be called, which is a bigger problem.
are you trying to use solve callbacks, and are they not working?
from box2d-wasm.
I've been using JSContactListener
and PreSolve
and PostSolve
are called, so everything works correctly with that class.
from box2d-wasm.
v7.0.0
deletes JSContactListenerWithoutSolveCallbacks
.
from box2d-wasm.
Related Issues (20)
- How to realize collision detection HOT 1
- How to move the rigid body position after the rigid body is created HOT 1
- how to get bounds?
- how to Change the shape of body dynamically HOT 1
- Unable to use SetLength() with DistanceJoint HOT 1
- 'box2d/b2_voronoi_diagram.h' file not found
- not work vitejs
- Cannot construct a b2Draw, no constructor in IDL HOT 2
- C++ Version of LiquidFun integration? HOT 2
- How to instantiate b2RayCastInput class HOT 1
- Ray casting from fixture doesn't work in my example HOT 3
- Doesn't work on latest Node HOT 7
- The simple "hello, world" example with ESM on box2d-wasm on sandboxes (PlayCode and Plunker)
- The jsDelivr ESM link doesn't work for Box2D-WASM HOT 2
- How to use b2ContactListener in box2d-wasm HOT 2
- Unable to deploy example with box2d-wasm on Node.js hosting. HOT 4
- To load wasm
- Liquidfun ParticleGroup shapes array HOT 1
- Can't instantiate packages HOT 1
- liquidfun's GetPositionBuffer() doesn't return a list HOT 2
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 box2d-wasm.