Skip to content

VRM1 LookAtTarget incorrect when character not in default orientation at Start #2801

Description

@Fish7793

Environments (please complete the following information):

  • UniVRM version: 0.131.0
  • Unity version: Unity-2023.2.22f1
  • OS: Linux

Describe the bug

VRM1 LookAtTarget incorrect when character not in default orientation at Start. If the character is not rotated to default global rotation (0, 0, 0), then LookAtTarget will be visually incorrect.
Example: Character starts with rotation (0, 180, 0) then when look at target is positioned above the character, the eyes will look down and if positioned below, the eyes will look up. This is the opposite of expected behavior (look up when target is above, look down when target is below).
This is not the case when the character starts with rotation (0, 0, 0) and then rotates later.

Example

Image
Screencast_20260611_163331.webm

To Reproduce

  1. Import a vrm 1.0 file exported from vroid
  2. Add to scene with rotation (0, 180, 0)
  3. Enable LookAtTarget and assign a transform
  4. Enter Play Mode
  5. Move target above character
  6. Eyes should be pointing down instead of towards target

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0LookAt/FirstPersoncreate headless model for VRbugSomething isn't workinginit/disposet-pose 等の初期状態。再初期化。editor play で material を複製し、終了時に初期状態に復帰するなど。

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions