Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): set version to 2.6.0 [skip ci]
## [2.6.0](v2.5.18...v2.6.0) (2023-02-28) #### Features * **Drive:** add helper events for move to target value ([02ee092](02ee092)) > Two new helper events have been added to the internal drive component that will emit when the Facade.MoveToTargetValue property is changed so extra processing can be done on that event occurring if needed. > > These events will also be processed on enable of the drive so initial values will be taken into consideration. * **DriveFacade:** expose Interactable IsVisible property on Facade ([faa2bf1](faa2bf1)) > The InteractableFacade has an IsVisible property that can be used to get the visibility status of the Interactable or set whether the Interactable is visible or not. > > This is now bubbled up and exposed on the Controllable DriveFacade so it is easier to access. * **LinearTransformDrive:** add reference to artificial velocity ([9554dd5](9554dd5)) > The LinearTransformDrive now has a reference to the Artificial Velocity Applier component that is used when the Interactable Object is ungrabbed. This is to keep it inline with the AngularTransformDrive which also has a reference to the same component. > > The ungrabbed/grabbed drag options on both Linear drives has also been set to 5/5 for consistency. #### Bug Fixes * **AngularDrive:** ensure target value threshold is normalized value ([bd69659](bd69659)) > The targetValueReachedThreshold property should be a normalized value as both InitialTargetValue and TargetValue are normalized properties. > > But on the AngularDrive it was being treated as the actual rotation value threshold, which caused confusion as it was different between drive types and also caused certain events to break as they were expecting to check off the normalized value. > > All prefabs have had their default targetValueReachedThreshold set to `0.0075` as this is a decent default normalized threshold to consider the drive is at the target value. * **AngularJointDrive:** stop motor process every frame if not needed ([5260849](5260849)) > The ProcessAutoDrive method is called in the MomentProcess every frame and this would cause the motor to be set every frame even if nothing had changed, which would cause the rigidbodies to be affected every frame causing potential issues with collisions. > > This has been fixed by only updating the motor if the drive speed has changed from the existing velocity. * **AngularTransformDrive:** process drive speed correctly on auto drive ([32f7257](32f7257)) > The drive speed on the auto drive function on the transform drive is twice as fast as the joint drive. This fix just halves the drive speed when setting the rotation as it should be half of the speed to set the actual speed like the joint motor does. * **DriveFacade:** set tooltip to correct text ([5f7944f](5f7944f)) > The SnapToStepOnRelease property had the wrong tooltip text and this has now been updated to match the property documentation summary.
- Loading branch information