问题描述
有人会有模仿射弹动作的代码。
这就是我所拥有的:
Shape1 - 射弹
变量是:
速度 - 初速度
角度 - 射弹发射的角度
其他变量是:
高度 - 特定时间内射弹的高度
射程 - 射弹距离多远从原点来看
我知道所有这些变量,但我忘了这个公式。请帮助我。
Would someone have code that emulates projectile motion.
This is what I''ve got:
Shape1 - the projectile
The variables are:
Velocity - the muzzle velocity
Angle - the angle in which the projectile is fired
Other variables are:
Height - how high is the projectile in the specific time
Range - how far is the projectile from the point of origin
I know all these variables, but I just forgot the formula. Please help me.
推荐答案
你好,isotope11!
好像你已经裁掉了......
这是C ++吗?
您可能需要在加载到程序之前先手动解决这个问题。也许在掌握了手动结果之后建立一个伪代码可以提供帮助。
如何达成交易?
D? k?ll
Hello, isotope11!
Seems like you have work cut out...
Is this C++?
You may need to figure outhow to solve this manually firsthand before loading into a program. Perhaps builing a pseudocode, after you have mastered a manual result can help.
How''s that for a deal?
D?k?ll
这篇关于这里需要一些物理...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!