playMaker

Author Topic: Get Rotation strange effect  (Read 1428 times)

stigma

  • Full Member
  • ***
  • Posts: 218
Get Rotation strange effect
« on: November 09, 2023, 12:27:24 PM »
Hi,
I save the position and rotation of the player to save it with Smooth Save.
Back in the scene, the position is loaded but when I move the mouse, the player no longer turns on itself but seems to make a circle around a position. In short, it's weird.
I use Get Position self in Vector3 and Get Rotation self with Quaternion.
« Last Edit: November 12, 2023, 10:51:02 AM by stigma »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Get Rotation strange effect
« Reply #1 on: November 10, 2023, 04:24:30 PM »
hi.
instead of Self, try world.

is the object in the root directory?

if not, it might be that the root may have a different rotations during load and save for example.

stigma

  • Full Member
  • ***
  • Posts: 218
Re: Get Rotation strange effect
« Reply #2 on: November 11, 2023, 08:09:51 AM »
I tried world and it's the same thing. Which root directory?
I used the same method on Unity 5 projects and it worked well though. :(

Edit:
ah ok it works now locally!

Re Edit:
actually no, it works some times and other times it doesn't.
However it worked very well on a Unity 5 project
« Last Edit: November 12, 2023, 10:41:15 AM by stigma »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Get Rotation strange effect
« Reply #3 on: November 12, 2023, 11:35:18 AM »
Hi.
Can you compare the save data when it works and don't work.

if you have a old project maybe compare the action scripts.

for rotation maybe try Get/Set Rotation instead.

stigma

  • Full Member
  • ***
  • Posts: 218
Re: Get Rotation strange effect
« Reply #4 on: November 12, 2023, 12:12:27 PM »
I try to download PlayerPrefsx on the eco system but there are 10 errors at startup