Hey there,
I’m discovering the beauty of the physics system, but I bumped into a weird issue with a hinged joint:
I’m modifying the awesome free "Kawaii"tank model by Choby. I am trying to make it even more realistic by adding even more physics. Thus far this worked like a charm, but now I found a weird issue:
I added a hinged joint to the turret. This joint is linked to the main body of the tank. I bound 3 keys to the turret:
-One key applies torque clockwise
-One key applies torque counterclockwise
-One key sets the angular drag to a high value, so the turret can be “braked”.
This works perfectly if the tank is stationary, or driving in a straight line, but it is not working as expected when the tank is turning. If the Angular drag value is low or zero, the turret always points in the same world direction, even if the tank is turning (so the turret is rotating relative to the tank, even if no torque is applied). This seems perfectly normal behaviour caused by the angular inertia of the turret. But when I set the Angular drag to a very high value, the turret will still keep on pointing in the same world direction if the tank turns. This is not what I expected: I would expect that the high drag would force the turret to follow the body to some extent, but no matter how high I set the angular drag, the turret completely ignores the body rotations.
The angular drag only seems to apply between the world and the turret, but I would like it to apply between the tank body and the turret.
Any suggestions?