We are using DOLocalPath to tween an object that is set as a child to a non-uniformly scaled parent.
We want to use a CubicBezier path with a TopDown2D path mode.
Also, we want to orient the object to always be tangent along the bezier curve. We use SetLookAt for this.
We encountered the following issues (as can be seen in the attached image and also testes in the attached project):
Issues
The bezier curve gizmo is drawn in world space instead of local space
The rotation angle calculated by SetLookAt is wrong and the object is not tangent to the curve
Steps to reproduce
Open the attached project
Enter Play mode
Select StartBothMovers object in hierarchy, open the StartBezierMovers context menu and select Start All Movers
Description
We are using DOLocalPath to tween an object that is set as a child to a non-uniformly scaled parent. We want to use a CubicBezier path with a TopDown2D path mode. Also, we want to orient the object to always be tangent along the bezier curve. We use SetLookAt for this.
We encountered the following issues (as can be seen in the attached image and also testes in the attached project):
Issues
Steps to reproduce
Project - Unity 2020.3.13f1
DoTween Bug Project.zip
Steps to reproduce
Bugs description