Path-Creator icon indicating copy to clipboard operation
Path-Creator copied to clipboard

Its moving by itself

Open WilleD70 opened this issue 4 years ago • 6 comments

Hello, I have the solar system project and when I have a path in the project and I move my mouse or touch any buttons it moves on the Z axle. Any help would be great!

WilleD70 avatar Oct 08 '21 15:10 WilleD70

PathCreator\Core\Editor\PathEditor.cs : image

Move this code stack to OnDrag function

harunuysali07 avatar Jan 26 '22 13:01 harunuysali07

The above suggestion did not work. Any further news from this issue? Thanks

iamaviral avatar Dec 29 '22 05:12 iamaviral

Any progress on this? I thought my project was haunted for a minute there.

Basically I managed to narrow it down to:

  • When a PathCreator is selected, any/most type/s of mouse movement (specifically over the Scene View) changes the transform position of either the PathCreator's gameObject directly, or by manipulating the curve's points in a way that updates the afore mentioned position.

Looking into that part of the editor script mentioned above. I didn't work, but I believe that's where the problem lies.

AlonsHub avatar May 29 '23 10:05 AlonsHub

We encounter the same problem if the object is in a parent that does not have a rotation of 0,0,0. This seems to happen only if one axis of the parent is precisely at +90 or -90 degrees.

EliottJaquierCPNV avatar Aug 06 '23 08:08 EliottJaquierCPNV

Is it known why it moves if parent is not in rotation 0,0,0?

Dragon-0609 avatar Oct 11 '23 14:10 Dragon-0609