Slow Down with hinge.

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
DimEkm
Posts: 8
Joined: Thu Sep 14, 2006 11:24 am

Slow Down with hinge.

Post by DimEkm »

Hi.
Sorry I don't have web space so I will try to explain the problem.
I have a static mesh cube and a rigid one cilinder. I took the python script named "constraint" from the demo "bullet_4x4_hinge_vehicle" and atached to the cilinder so the cillinder to stuckted on the cube. Then I gave to the cilinder a linear Angular velovity so it will turn in constant.
Evrything looks nice but if I leave the demo to run for some time looks like the frame rate starting to drop or the rotation of the cilinder loosing it's smouthness.

My english are bad sorry about this.
Thanks.
DimEkm
Posts: 8
Joined: Thu Sep 14, 2006 11:24 am

Post by DimEkm »

Sorry about this but I found a solution by my self.
Anyway it may help others or point a problem.
I added a new bool Property in the cilinder named "addedConstraint" so I can check If I had added a constraint before I add a new one again.
Now evrything works fine.