ExtendRealityLtd / ExtendRealityLtd/Tilia.Interactions.Controllables.Unity
AngularDrives not raising TargetValueReached event
- Dominant language
- C#
- Stars
- 9
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
### Environment
Unity 2020.1
Tilia Controllables 1.10.13
**Issue:**
The TargetValueReached UnityEvent won't get raised on an AngularJoint/TransformDrive when the TargetValue is set by code.
Reproduce:
1) Place an Interactions.AngularJointDrive prefab in the scene.
2) Hook the public SetTargetValueByStepValue() function in the Facades StepValueChanged UnityEvent.
3) Enable/Disable the Drives public MoveToTargetValue property in the Ungrabbed/Grabbed UnityEvents in the Interactable.
4) Call a Debug function from the TargetValueReached UnityEvent of the Drive.
5) Move the Drive around by grabbing it with an Interactor and notice the TargetValueReached event not being raised, even if the Drive obviously reaches its target value.
6) Do same with **Linear**JointDrive prefab.
7) Notice TargetValueReached event is getting raised properly on the linear drive.
Greetings!
Contributor guide
Assessment
This issue has not been assessed yet.