eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

加了 Physics 组件后,手动更改 `gameObject.transform.position` 没有效果 #41

Closed le0zh closed 3 years ago

le0zh commented 3 years ago

Expected Behavior

加了 Physics 组件后,能继续通过 gameObject.transform.position 控制位置

Current Behavior

加了 Physics 组件后,手动更改 gameObject.transform.position 没有效果

le0zh commented 3 years ago

已解决。。需要使用 physics.body.position = e.data.position;