Smooth movement to ascend through the atmosphere

前端 未结 4 1937
耶瑟儿~
耶瑟儿~ 2021-01-24 06:41

I\'m moving through the atmosphere with Microsoft Virtual Earth 3D and I can descend smoothly, but I don\'t know the math to ascend smoothly.

I\'m descending like this:<

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 07:18

    Since you use curAlt -= curAlt/150 for decending, why not use curAlt += curAlt*150 for ascending?

提交回复
热议问题