ExtendRealityLtd / ExtendRealityLtd/Tilia.Interactions.Controllables.Unity
Angular Transform Drive is controllable when interactor is offset from the interactable
- Dominant language
- C#
- Stars
- 9
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
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

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

The AngularJointDrive works correctly in this way:

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.
Contributor guide
Assessment
This issue has not been assessed yet.