Git Product home page Git Product logo

Comments (6)

Ughuuu avatar Ughuuu commented on May 23, 2024 1

Actually the simd-stable also doesnt work with web. Disabled that in this PR #46 to see if it works. Will update if it works. Am investigating still tho.

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on May 23, 2024 1

By removing the call to step from rapier code, it works. So the problem is the world_step function and what it does most likely.
I think first I would need to keep on removing stuff from step and see what causes it (my guess is it's the callbacks or their signature).

from godot-rapier-2d.

souvikinator avatar souvikinator commented on May 23, 2024

Hi! Any update on this?

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on May 23, 2024

From what i see the linked issue is still open. So probably still wont work

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on May 23, 2024

Small update on this. Make it start at all. Before it didn't want to load the dll, now it loads it, but at the step function it throws in the browser:

Aborted(Assertion failed: bad function pointer type - dynCall function not found for sig 'vijiiiiiiiiiiii')
	$world_step
	$_ZN13RapierSpace2D4stepEf

I am building locally with emscripten 3.1.56, but will try with other version to see if it works with any. Godot GDExtension uses 3.1.45, with that it doesn't load at all.

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on May 23, 2024

Ok, on this, I looked at what godot-rust is doing, and they have web exports working. So I think migrating this addon to be a godot-rust gdext would give us web exports.

Issue link where they describe how they added support for building web exports:
godot-rust/gdext#438

from godot-rapier-2d.

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.