Skip to content

[Bug]: 假人模拟看向只能修改假人roty不能修改rotx #278

Open
@kuangby

Description

@kuangby

Describe the bug

使用sp.simulateLookAt只能改变假人的roty不能修改rotx

To Reproduce

创建假人并调用sp.simulateLookAt

Expected behavior

假人能够低头或者抬头

Screenshots

No response

Platform

win10

BDS Version

1.21.60-70

LeviLamina Version

1.1.x-1.2.x

LegacyScriptEngine Version

0.10.x-0.11.x

Additional context

修复方法:
注释掉ll头文件mc/server/sim/LookAtIntent.h中 LookAtIntent& operator=(LookAtIntent const&);这一行
并把src/lse/api/helper/SimulatedPlayerHelper.cpp中的所有SimulatedPlayerHelper::simulateLookAt函数中的sim::lookAt(player, ***, lookType);修改为player->mLookAtIntent =sim::lookAt(player, ***, lookType);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions