Do you have any suggestions how to handle the situation when a joint motor is blocked? I"d like to define a maximum force and detect when that force is exceeded, so I can disable the motor:
oh is the actuator, that make it simpler. I had no added because I did need so fart by that one key featuire of actuators. in fact is also a key featire of haptic devices. is the max prsion that teh actuiator can apply. I can add that righ away. I will also test wi the forklift demo.
it will be SetMaxForce(float Value). the whe the joint will me but if can only apply that max force, in you case when if forc down that ostacle will resi teh motion and teh joint wuill somple there there. I can also ass a fntion that let you read if te hmax force so that you can stop teh motor, when tio hot teh limit.
Ok if you sync to svn, I added a hack that quicklly force the friction limit to +- 1000.
now the jorklift demo can not lift himself, which is what shuold happens. this should make your joint also stops when it hit the obstacle, see if that works, please.
after that we add the inteface to control that funtionality, that can be used as the power of the actuator.
that's part of the problem I get. you always run with the quickest solution and never wait for the correct update.
I give you quick things for you to test, and you go on assuming this is the fix, you build funtionality, later when I add the final change the moment you update, your code brake unnoticed to you, and you get your users bitching about the physicas library.
i can not leave that hard coded constant there, I have to make it an option and set the default force to an infinite value, It is the end user job to set it to the value they want. as soon as I do that your code will brake, and there we go again back to the beginning.
Ok I added the interface functions, for controlling that, see careful becaus eth defuel is 1e10 (10 millioen tiem stronger)
you need to call SetMaxForcePower(dFloat force); after you make create the joint, you cna try 1000 lie kthe hack that mean it will apply a force of about 100 kg down, you can probably set it to a lower value. for example you can set to say 3 times the weight of the platform.
the interpretaion is adding a strong of weak motor to the serve that open or close the door. you can do real game play stuff like jamming doors by placing heavy or light obtacles in the way
it doe no make moch sence for a door, but stuff like elavators, a strong motor can leift some object, and a weak motor will make the joint fail, so you can jam elevatior by placing a heaving object.
I think pHySiQuE meant the HingeActuator but I can see that you added the same functions to the HingeActuator and UniversialActuator at the same time you added it to the SliderActuator.
After the Update i get those warnings and errors - if i remove joint lib from my project, anything is fine. My preprocessoer defines are PTW32_STATIC_LIB DG_USE_NORMAL_PRIORITY_THREAD _NEWTON_USE_LIB _NEWTON_STATIC_LIB