btHingeConstraint.getHingeAngle wrapping issue

JeffDJeffD Posts: 20

This issue is for the Bullet2 extension, which is currently available in the escher daily builds.

btHingeConstraint.getHingeAngle() is exposed in Bullet2.kl(default & overloaded) but not wrapped in Bullet2Wrapper. So I wrapped it as part of a custom extension, but it doesn't work.

As a node it always fails on this test, 'if(this.hingeConstraint.cxx_isValid())'

If used in kl code, for example in a function node, it always throws this error 'no resolution for method Bt2Constraint.getHingeAngle()'.

Here's the kl wrapping code.

function Float32 Bt2Constraint.getHingeAngle!()
    report('Not valid.');
    return Float32();
    report('Passed this.hingeConstraint.cxx_isValid()');
    return this.hingeConstraint.getHingeAngle();
    report('Failed this.hingeConstraint.cxx_isValid()');
    return Float32();

Any ideas why this isn't working?

Note that hingeConstraint is the name of the btHingeConstraint member of the Bt2Constraint struct so that's not a typo, but I'm definitely not above a good old typo :)



  • borjaborja Administrator, Fabric Employee Posts: 480 admin

    We are looking at this issue in the internal ticket FE-8530

    Stay tuned!

    Borja Morales
    Technical Product Manager
    Fabric Software Inc.

Sign In or Register to comment.