question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compile error: bullet.CompoundShape has no field calculateLocalInertia

See original GitHub issue

Hi. I tried to compile this project: https://github.com/armory3d/armory_templates/tree/master/vehicle

and got these errors:

Capturew2

I also used VehicleBody trait in a new simple “car project” and got the same error.

Here is the export settings: Capturew

System Blender: 2.82 Armory: 2020.6 OS: Windows 10 Graphics card: 1070ti

edit: simple car project files: SimpleCar.zip

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Sanvacommented, Jul 24, 2020

@luboslenco the problem is, how to add that? It looks like static vars are not supported in Hashlink WebIDL — and, for worst, that aren’t really class constants in Bullet, just defineshttps://pybullet.org/Bullet/BulletFull/btCollisionObject_8h_source.html (l. 22~26).

In Krom/js, with Ammo, they work because Haxe itself allows to define static inline vars in extern classes that will the replaced at compile time.

But I don’t know how to do the same with the Hashlink version.

One possible solution would be to create a CollisionObjectActivationState enum with the right values, for example — that would work across all possible targets, it’s just an int. What do you think? We could even keep the Ammo static vars for backwards compatibility without conflicts.

1reaction
Sanvacommented, Aug 20, 2020

@MoritzBrueckner I’ve added a pull request updating that file → https://github.com/armory3d/armory_templates/pull/7

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I use Ammo.btCompoundShape (JavaScript port of ...
I assume I did something wrong with the Ammo.btCompoundShape. There are no errors. What's the correct way? javascript · bullet · ammo.js.
Read more >
btCollisionShape unresolved externals - Real-Time Physics ...
Currently trying to compile https://bitbucket.org/sirbrialliance/raytrace this OpenCL raytracer which uses Bullet for some simple physics.
Read more >
siconos.mechanics.collision.bullet - Université Grenoble Alpes
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape, btConvexHullShape etc. It describes general convex shapes ...
Read more >
calculateLocalInertia seems to have no effect · Issue #7 - GitHub
This sample works fine with ammo.js and with older haxebullet versions, but on a latest version native build LocalInertia doesn't change at ...
Read more >
Merge branch 'bullet2-master' · 9e9b172b23 - bullet3 - Macoy's Code
Bullet Physics Library is an open source project with help from the ... In no event will the authors be held liable for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found