GithubHelp home page GithubHelp logo

Comments (5)

luboslenco avatar luboslenco commented on July 19, 2024

Can you try this one?

phys.body.ptr.setUserIndex(666);

Other code may require similar changes like this. Had serious trouble migrating to Haxe 3.3, I am not sure Haxe 3.2 will work for latest commits. Library now produces much cleaner C++ code though, so it should be worth it in the end.

from haxebullet.

Ohmnivore avatar Ohmnivore commented on July 19, 2024

phys.body.ptr.setUserIndex(666); works :)

Is it the new proper way to keep code cross-platform, or do you still use .value in 3.3 code?

from haxebullet.

luboslenco avatar luboslenco commented on July 19, 2024

Great! I also use .ptr for this one, and .value for BtVector3 and alike(things defined as cpp::Struct in Bullet.hx).

from haxebullet.

Ohmnivore avatar Ohmnivore commented on July 19, 2024

Ah ok i replaced the necessary .value occurences by .ptr in my code until i got no error messages. JS works just like it used to, but in cpp I can't steer my ship anymore. I'll check the bullet changelogs, something probably changed between versions.

from haxebullet.

Ohmnivore avatar Ohmnivore commented on July 19, 2024

Hmm it's odd, it seems like RigidBodies have acquired infinite rotational inertia, it only happens on cpp with bullet 2.83.7.

from haxebullet.

Related Issues (14)

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.