[SOLVED] issue with dcustomHinge

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: issue with dcustomHinge

Postby misho » Fri Dec 04, 2020 3:56 pm

Hi,

Is this still work in progress? I am getting build errors: (configuration debug_double)

Code: Select all
12>..\..\dCustomJoints\dCustomJoint.cpp(285): error C2556: 'double dCustomJoint::CalculateAngle(const dVector &,const dVector &,const dVector &) const': overloaded function differs only by return type from 'float dCustomJoint::CalculateAngle(const dVector &,const dVector &,const dVector &) const'
12>  e:\newton-dynamics-master\newton-3.14\sdk\dcustomjoints\dCustomJoint.h(343): note: see declaration of 'dCustomJoint::CalculateAngle'
12>..\..\dCustomJoints\dCustomJoint.cpp(284): error C2371: 'dCustomJoint::CalculateAngle': redefinition; different basic types
12>  e:\newton-dynamics-master\newton-3.14\sdk\dcustomjoints\dCustomJoint.h(343): note: see declaration of 'dCustomJoint::CalculateAngle'
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 675
Joined: Tue May 04, 2010 10:13 am

Re: issue with dcustomHinge

Postby Julio Jerez » Fri Dec 04, 2020 4:17 pm

fixed, sorry.
Julio Jerez
Moderator
Moderator
 
Posts: 12425
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: issue with dcustomHinge

Postby misho » Fri Dec 04, 2020 4:37 pm

Beautiful, thank you!
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 675
Joined: Tue May 04, 2010 10:13 am

Re: issue with dcustomHinge

Postby blackbird_dream » Sat Dec 05, 2020 7:12 am

SetAsSpringDamper has a weird behavior with commit 2193059f12ae1793ac7e813c6771335fad61fa04
On the single case study, the moving mass is not taken into account apparently.
On a more complex structure the joint induces severe distorsions/explosions...

It works better with commit 074dfd7d40005d3756bbdfd4cb977de52be7c0d4

I must see with K00m as your demo works fine and my duplication in his environment doesn't behave the same. I must find where is the issue.
User avatar
blackbird_dream
 
Posts: 379
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Re: [SOLVED] issue with dcustomHinge

Postby blackbird_dream » Tue Dec 08, 2020 3:48 pm

We found the issue : Timestep
running at 1/60 gives the same results as bbd demo in sandboxdemo.
=> The fix works for me.
User avatar
blackbird_dream
 
Posts: 379
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests