DragDetector issue when Model is rotated

Hi everyone! I really need some help with this.

Can someone show me how to correctly use the DragDetector? Im having this issue:

When I rotate the model that contains the DragDetector I should update the DragDetector.Axis according to the new rotation of the Model, how should I do it?

If the .Axis is different than 0, 180, 90 now the DragLimits.MaxDragAngle and min are not working anymore, should I use MaxDragTranslation ? how?


Im trying to build somekind of spining lever, and no matter its orientation I want it to be able be drag on Y axis only and ofc with DragStyle = RotateAxis, so it stays at its position, and the lever just rotates on Y.


I found that while the Model is not rotated at all its easy to use the Max and Min Angle, like -90 to 90, and the lever stops normally at max and min angle, but when I rotate the model the issues comes up.

Im asking for some help to get the proper values for Drag Directions Axis obtained from the Model rotation, and how to get the proper values to make the Min and Max Angle to work when the model is rotated


Using DragDetector with a Model that has Default rotation (working normally apparently):

Properties:
Model:
01
DragDetector:


Using DragDetector with a Model that has Custom Rotation (it does not stop when the Max and Min angle is reached):


Properties:
Model:
03
DragDetector:


Plus… Weird issue when dragging the model with “crazyness”… is DragDetector reliable? perhaps Im just using incorrect Params?.. (it totally goes out of angle)

1 Like