飞机游戏三仿真软件 3.3 Dogfight介绍
飞机游戏三仿真软件 3.3 Dogfight介绍
目录
1 项目地址
api 文档
https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/documentation_network.md
2 键盘操纵指令
Aircraft keyboard Commands 飞机键盘操控命令
Command | Key |
---|---|
Increase thrust level | Home |
Decrease thrust level | End |
Increase brake level | B |
Decrease brake level | N |
Increase flaps level | C |
Decrease flaps level | V |
Roll left | Left |
Roll right | Right |
Pitch up | Up |
Pitch down | Down |
Yaw left | Suppr |
Yaw right | PageDown |
Switch post combustion | Space |
Next target | T |
Switch gear | G |
Activate IA | I |
Activate Autopilot | A |
Switch easy steering mode | E |
Fire machine gun | Enter |
Fire missile | F1 |
Increase health level | P |
Decrease health level | M |
Rearm | F5 |
HUD on /off | H |
Commons Views commands 摄像头视角操控命令
Command | Key |
---|---|
Roll cameras carousel (aircrafts, FPS) | 1 |
Increase FoV angle | PageUp |
Decrease FoV angle | Insert |
Aircrafts views commands 飞机视角操控命令
Command | Key |
---|---|
Back view | 2 |
Front view | 8 |
Left view | 4 |
Right view | 6 |
Satellite view | 5 |
Tactical view | 7 |
Pursuit view | 9 |
Cockpit view | 3 |
FPS camera views commands
Command | Key |
---|---|
Head orientation | LMB + mouse move |
Move forward | Up, Z |
Move backward | Down, S |
Move left | left, Q |
Move right | right, D |
Fast speed 1 | Left Shift + move |
Fast speed 2 | Left Ctrl + move |
Fast speed 3 | Right Ctrl + move |
Supported control devices
- Keyboard
- XBox gamepad or any compatible model
- Logitech "Attack 3" Joystick
3 开发平台
HARFANG® 3D - Real Time Visualization Tools (harfang3d.com)
API:
API Classes - HARFANG® 3D (harfang3d.com)
4 项目架构
整体文件目录
- bin 是所依赖的一些python 的包和动态链接库
- network_client_example 保存一些如何进行网络连接的示例
- screenshots保存了渲染所需的图片
- source 是主要的文件
source文件夹
值得注意的是 里面很多都有
import harfang as hg
代码里面也有很多相关函数的使用,
而这个harfang是一些动态链接库,也就是上面提到的开发平台,所以有一些东西是看不到的,但是开发平台给出了函数的python格式的接口
基于这一个示例,自己继续进行开发是有可能的,包括飞机型号,导弹型号的设置,飞机状态,通信,运动,物理模型等进行自定义
本文来自博客园,作者:{珇逖},转载请注明原文链接:https://www.cnblogs.com/zuti666/p/16972500.html