Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:traceRay接口includeActor参数不起作用 #1481

Closed
engsr6982 opened this issue Mar 10, 2024 · 0 comments
Closed

[Bug]:traceRay接口includeActor参数不起作用 #1481

engsr6982 opened this issue Mar 10, 2024 · 0 comments
Labels
bug Related to software malfunction

Comments

@engsr6982
Copy link

engsr6982 commented Mar 10, 2024

Describe the bug

此接口在lse引擎上有使用,但无法获取entity对象,似乎includeActor不起作用

参数Actor.h

lse代码
https://github.com/LiteLDev/LegacyScriptEngine/blob/0e0cb70f9c9c6e9ac02ce9790773b2135ef51639/src/legacy/api/EntityAPI.cpp#L1368-L1384

To Reproduce

lse的代码片段截取

HitResult result = actor->traceRay(5.5f, true, false);
Actor*    entity = result.getEntity();
if (entity) {
    std::cout << "true" << std::endl;
}

Expected behavior

正常获取到Entity对象

Screenshots

No response

Platform

win11

Version

0.9.2

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to software malfunction
Development

No branches or pull requests

1 participant