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.
我试图在没有任何物理的情况下以惯性移动汽车。我在 Objective C 中使用基于视图的应用程序。 是否可以做这样的事情?我的任务是: 我触摸汽车并将其向左移动,当触摸结束方法完成后,汽车应继续惯性移动。
你试过什么吗?
如果你不想用物理学来做,你将很难让它做你想让它做的事情。至少你需要
v = u - at
在哪里:
v is the new speed, u is the initial speed t is the time and a is the deceleration
这是你需要自己想出一个数字的减速。