天使 地狱 傲慢
- UID
- 1680205
- 主题
- 2
- 阅读权限
- 70
- 帖子
- 14054
- 精华
- 1
- 积分
- 7454
- 金钱
- 2444
- 荣誉
- 20
- 人气
- 1
- 在线时间
- 203 小时
- 评议
- 0
- 帖子
- 14054
- 精华
- 1
- 积分
- 7454
- 金钱
- 2444
- 荣誉
- 20
- 人气
- 1
- 评议
- 0
|
function ThrustFormula (currentThrustValue,thrustPercentage,thrusterScale,planeVelocity,planeMass,fricForce)
local thrustForce = 0
gplaneVelocity = planeVelocity
if (gplaneVelocity < 1200) then
thrustForce = (thrustPercentage - 50) * 0.02 * currentThrustValue * planeMass
else
if (gplaneVelocity) then
local thrustDiv = Lerp (0,1,(gplaneVelocity/maxVelocity_used))
-- print (gplaneVelocity,maxVelocity_used,thrustDiv)
if (thrustDiv <= 0.2) then
thrustDiv = 0.2
end
if (thrustDiv > 1) then
thrustDiv=1
end
thrustForce = (thrustPercentage - 50) * 0.02 * thrustDiv * currentThrustValue * planeMass
end -- if gplanevelocity
-- end -- if PlayerAssistance
end -- if gplaneVelocity
if(thrustForce < 0) then
thrustForce = 0
end
return thrustForce
end
等等等等
以上是飞机的常规推力函数 你来分析一下
还有阻力函数控制函数等等等等等等等等等等 包括动作函数都有
文件就是在物理文件夹之中 十分欢迎有爱人士还原重建其数学模型 |
|