Forum rules - please read before posting.

Draggable remember moveable transform

edited August 2024 in Technical Q&A

Hi,

I have a draggable rotating cylinder on a hinge track as part of a puzzle and I have trouble saving the transform of the cylinder in its dragged, new rotation with Remember Moveable, as it returns to its original rotation when loading a save or returning to the scene. The actual cylinder model is a child of the draggable game object.
Here are the inspectors of the draggable and the hinge track.

https://imgur.com/a/wclPSi6

What I have tried:

  • Add Remember Transform as well as the Remember Moveable
  • Toggling "Set starting position" on and off
  • Save transforms of the Remember Moveable compponent in Global and Local
  • Adding a Constant ID to the track game object

I could reset the puzzle everytime the player changes scene or load a save, but it would be nice to keep it in the moved/rotated state.

AC 1.81.2
Unity 2022.3.3 5f1

// Magnus

  • Instant Update: When leaving the "Maintain original child transforms" blank it works! I was under the impression that since the transform of the child object doesn't change when dragging, I didn't have to take that into consideration, but in any case, now it works!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.