o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.83k stars 2.21k forks source link

Multiple Prefabs Cannot be Transformed Locally #17729

Open rhuthCarb opened 7 months ago

rhuthCarb commented 7 months ago

Describe the bug You cant transform multiple objects locally. I had a terrain piece rotated 45degrees and set the transform to local. I could duplicate and move a single piece locally, but upon selecting multiple prefabs, it automatically set the transform back to global. this forced me to duplicate the terrain one at a time instead of being able to duplicate and transform multiple at once.

Assets required any prefab

Steps to reproduce Steps to reproduce the behavior:

  1. place a prefab
  2. rotate and switch to local transform
  3. duplicate
  4. select both prefabs and try to move in local transform
  5. multiple objects selected switches back to global

Expected behavior Transforming multiple objects locally at the same time

Actual behavior Selecting multiple objects forces it from local to global translation

Screenshots/Video

https://github.com/o3de/o3de/assets/69811218/c173d174-962c-4909-b2a1-d3557735e129

Found in Branch https://github.com/carbonated-dev/o3de

Commit ID from o3de/o3de Repository custom engine version 2310.2 SHA https://github.com/o3de/o3de/commit/e22213ea946932dc2f94d9f1392e98b4bf2b2c3f

Desktop/Device (please complete the following information):

Device: [PC] OS: [Windows] Version [11] CPU [13th Gen Intel(R) Core(TM) i7-13700K 3.40 GHz] GPU [NVidia RTX 3070] Memory [64GB] Additional context Add any other context about the problem here.

AMZN-daimini commented 6 months ago

Sounds like the manipulator takes the orientation from the entity with a single selection, and from the parent with a multiple selection.

Thing is, though, I tried rotating the parent and moving around the children in a similar fashion, and it went a bit nuts.

wat

So yeah sounds like there's something messed up with the way manipulators inherit the space from their parent if rotations are involved. Not really my area but I can give it a go.