- Swift Game Development(Third Edition)
- Siddharth Shekar Stephen Haney
- 66字
- 2021-07-16 17:37:47
Fine-tuning gravity
Before we test out our new flying code, we need to make one adjustment. The default gravity setting of 9.8 feels too real. Pierre lives in a cartoon world; real-world gravity is a bit of a drag. We can adjust gravity in the GameScene
class; add this line at the bottom of the didMove
function:
// Set gravity self.physicsWorld.gravity = CGVector(dx: 0, dy: -5)
推薦閱讀
- 普通高校中文學(xué)科基礎(chǔ)教材古典文獻學(xué)基礎(chǔ)
- 圖書館學(xué)是什么
- 文獻保護中英雙解詞語手冊
- 網(wǎng)絡(luò)學(xué)術(shù)信息老化及應(yīng)對管理
- 北京大學(xué)中國古文獻研究中心集刊·第十四輯
- 《葉赫那拉氏族譜》整理與研究
- Practical Industrial Internet of Things Security
- 文獻價值:理論文獻學(xué)的價值論解讀
- 文獻學(xué)與歷史研究
- 讓文明得到更好的傳承:公共文化服務(wù)體系中公共檔案館發(fā)展戰(zhàn)略
- 檔案與少數(shù)民族記憶
- 高校圖書館學(xué)科服務(wù)研究
- 科技服務(wù)研究
- 抗戰(zhàn)時期中國圖書館界研究
- 大數(shù)據(jù)搜索與日志挖掘及可視化方案:ELK Stack:Elasticsearch、Logstash、Kibana (第2版)