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

修改gameObject transform后,pixi.js worldTransform 没有同步更新 #202

Closed
lidongjies opened this issue May 19, 2022 · 2 comments
Closed
Assignees

Comments

@lidongjies
Copy link
Collaborator

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Environment

  • Eva.js version: e.g. 1.0.0
  • Browser & Version: e.g. Chrome 67
  • OS & Version: e.g. MacOS 10.15.7
  • Running Example: url
@lidongjies lidongjies self-assigned this May 19, 2022
@aspsnd
Copy link
Contributor

aspsnd commented Aug 9, 2022

这个我记得设计上就是异步的,eva transform -> pixi transform 异步,pixi transform -> pixi worldTransform 也是异步

@fanmingfei
Copy link
Member

这里去修改的pixi上面的transform

updateTransform({ name, transform }: { name: number; transform: Transform }) {

System 会在当前帧最后的时候运行,所以说修改了 gameObject 的 transform 的后,要等到下一帧才能拿到最新的worldTransform。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants