Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular Transform Drive is controllable when interactor is offset from the interactable #235

Open
thestonefox opened this issue Mar 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@thestonefox
Copy link
Member

The Angular Transform Drive (when a lever is made for example)

will control the angular rotation of the target even when the interactor is offset from the interactable

angulartransformissue

This shows the issue that the drive will start rotating when the interactor overshoots and starts pushing back the other way.

The drive shouldn't rotate until the interactor is at least back in line with the lever

image

The AngularJointDrive works correctly in this way:

angularjointissue

The issue is going to lie in the Zinnia.Tracking.Follow.Modifier.Property.Rotation.TransformPositionDifferenceRotation class, most likely in the CalculateAngle method.

It takes the target position (the lever) and the source (interactor) previous position and the source current position to work out the heading of the interactor to determine the angle.

it needs to only start applying the angle when the interactor is within a threshold of the actual lever perhaps.

@thestonefox thestonefox added the bug Something isn't working label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant