Armory: [hl] bullet.RigidBody has no field isKinematicObject

Created on 13 Jun 2020  Â·  2Comments  Â·  Source: armory3d/armory

Description

As soon as you try to use PhysicsDrag, the project stops compiling for Hashlink targets with the error .../ArmorySDK-git/armory/Sources/armory/trait/PhysicsDrag.hx:44: characters 43-60 : bullet.RigidBody has no field isKinematicObject .

I've been trying to tackle the problem studying the Haxebullet WebIDL definition and it looks like the problem has something to do with inheritance ( https://github.com/armory3d/haxebullet/blob/master/Sources/bullet/bullet.idl#L454 ), so:

Indeed, overwriting Haxebullet WebIDL sources with current version of ncannasse/webidl solves the build problem — should I create a pull request in armory3d/haxebullet with this update, @luboslenco ?

By the way, picking objects to drag them doesn't work even with the change, but that seems related to fragments of code in Armory that only get included when building for JavaScript or C++ ( e.g. https://github.com/armory3d/armory/blob/master/Sources/armory/trait/PhysicsDrag.hx#L106,L110 ). This last problem may be the same reported in #1706 .

System
Blender: 2.82.7
Armory: Git version.
OS: Linux Mint 19.2 (linux 4.15.0-76-generic x86_64)
Graphics card: NVIDIA Quadro M2000M 4 GB

Test File
You can see the problem in the example https://github.com/armory3d/armory_examples/blob/master/physics_examples/drag.blend .

bug

All 2 comments

Indeed, overwriting Haxebullet WebIDL sources with current version of ncannasse/webidl solves the build problem — should I create a pull request in armory3d/haxebullet with this update, @luboslenco ?

That would be awesome!

By the way, picking objects to drag them doesn't work even with the change, but that seems related to fragments of code in Armory that only get included when building for JavaScript or C++

Maybe pickConstraint.getFrameOffsetA().setOrigin(newPivotB); will work for both js and hl now? hxcpp had issues with that before, hence the #elseif cpp.

Maybe pickConstraint.getFrameOffsetA().setOrigin(newPivotB); will work for both js and hl now?

Not for Hashlink, btGeneric6DofConstraint.getFrameOffsetA is missing from both WebIDL definition and C++ glue code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luboslenco picture luboslenco  Â·  3Comments

Amir-Arsalan picture Amir-Arsalan  Â·  4Comments

donalffons picture donalffons  Â·  4Comments

Bugsbane picture Bugsbane  Â·  3Comments

AttSee picture AttSee  Â·  4Comments