Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题是,例如,我在画布上有一个矩形,我用鼠标拖动它(因为在物理引擎中,所以位置和方向都会改变)。我想将矩形的移动记录为某事。比如 ControlAction 什么的,我在画布上有一个回放按钮,当我点击它时,我可以选择相应的 ControlAction 来回放动作。
我该怎么做以上工作?先感谢您。