saharan / OimoPhysics

A cross-platform 3D physics engine
MIT License
863 stars 68 forks source link

error in GenericJoint #40

Closed lo-th closed 2 years ago

lo-th commented 3 years ago

i see error in getRotationalSpringDampers of GenericJoint

return _translSds.toArray(); should be return _rotSds.toArray();

lo-th commented 3 years ago

is there any joint iterations setting ? can be usefull for strong joint

Dev-MarkoF commented 3 years ago

On that note: Is there a setting for welding a joint? There is often a need of just connecting two bodies without any degrees of freedom, similar to a classic parent/child relationship in a hierarchy.

lo-th commented 3 years ago

you can use Generic joint by default limite is 0,0 on each axe and rotation

saharan commented 2 years ago

Thanks for reporting, this is gonna be fixed soon.

is there any joint iterations setting ? can be usefull for strong joint

I believe setting JointConfig.solverType to ConstraintSolverType.DIRECT will be a lot helpful to make a specific joint stiffer.

saharan commented 2 years ago

fixed in 1.2.2!