GithubHelp home page GithubHelp logo

Comments (4)

Sondro avatar Sondro commented on July 19, 2024

So after talking to the guys at #kha apparently I need btRigidBody:btRigidBodyPointer = create()... OR remove the type and have it auto assigned, ie btRigidBody = create()...;

cpp still not quite compiling because of some render issue, but I'll leave this open for a little while in case there is something else you want to add.

from haxebullet.

luboslenco avatar luboslenco commented on July 19, 2024

Sorry I did not get to this sooner.

Robert hooked up a Bullet example recently:
https://github.com/Kha-Samples/BulletTest

Cpp compilation fix by removing the type:
Kha-Samples/BulletTest@fd6df9f

Or using the predefined BtThingyPointer typedefs, on cpp those ends up as cpp.Star<> types:
https://github.com/armory3d/haxebullet/blob/master/Sources/haxebullet/Bullet.hx#L1836

from haxebullet.

Sondro avatar Sondro commented on July 19, 2024

Thanks, much appreciated.

Do you know whether the BtPointers would be more or less performant?

from haxebullet.

luboslenco avatar luboslenco commented on July 19, 2024

No perf difference - BtPointer typedefs allow to write the same code for both js/hxcpp (as on cpp it wraps the types into cpp.Star<>).

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.