Jump to content

[SOLVED] JointHinge goes elastic


Recommended Posts

Posted

Hi,

 

I have created a hinge joint, and defined its parameters:

 

nozzle_joint.setLinearSoftness(0.0f);
nozzle_joint.setAngularSoftness(0.0f);
nozzle_joint.setLinearRestitution(1.0f);
nozzle_joint.setAngularRestitution(1.0f);

I assume these parameters should set the joint as a very rigid, rotational only joint. But the result is as follows: http://www.youtube.com/watch?v=_RkIihusyAc

 

What am I missing here?

  • 2 weeks later...
Posted

Still no idea? I did use a workaround solution defining the nozzle as a child object of car, and moving it kinematically. But it would be nice to be able to use hinge joint.

Posted

Hi. Sorry for late reply.

 

Actually, setting a linear restitution as 1.0f to joint should solve this problem. Unfortunately, I can't reproduce this case in my sample. Can you send your world sample?

Thanks!

Posted

Hi, We still investigating this case. We can't reproduce such behavior when joints are created manually in Editor. This behavior only appears when joints created from code.

 

Could you please try to use other joint type (for example, Cylindrical)?

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Well the JointSuspension of wheels, for instance, are also created from the script, and they work fine. This sounds odd.

Posted

post-1423-0-68085500-1407243666_thumb.png

 

nozzle_bodyrigid.MaxLinearVelocity should be equal to or greater than car_bodyrigid.MaxLinearVelocity.

Posted

That solved it, thank you very much.

×
×
  • Create New...