Comments (5)
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.
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.
Great! I also use .ptr for this one, and .value for BtVector3 and alike(things defined as cpp::Struct in Bullet.hx).
from haxebullet.
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.
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)
- Wrong path to bullet .h files generated HOT 3
- Need a little help with BtRigidBody plz HOT 2
- lime cpp target? HOT 7
- 'btRigidBody': no appropriate default constructor available HOT 4
- In the vehicle class not working of frictions HOT 1
- What Do We Need To Autogenerate Javascript Bindings? HOT 30
- [FR] Please include AllHitsRayResultCallback in haxelib HOT 8
- Managing pointers in cpp target HOT 9
- Readme test case HOT 1
- Collision callback HOT 2
- haxelib.json missing HOT 2
- calculateLocalInertia seems to have no effect HOT 5
- Crash on android HOT 4
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 haxebullet.