Skip to content

Heriyadi235/YuxiFlightInstrumentsforSF

Repository files navigation

YuxiFlightInstrumentsforSF

简介

一套飞行仪表系统,用于基于SaccFlight制作的VRChat飞行地图。 目前主要做完了空速表、姿态仪、高度表、转弯协调表、航向指示表与垂直速率表(六大金刚)。

一个示意图

上图只是示例仪表模型,有点简陋(俺不太会建模捏),但编写脚本时有考虑到复用性,所以应该可以方便地将其替换为其他模型,只需设置好动画,无需额外添加代码。

繁介

咱就是说有一天突然突然想自己做一个SF的机模,翻了翻SaccFlight的代码,然后就突然觉得,UdonSharp也不咋难嘛,花了两三天的时间,补了点开发知识,搞个这么个玩意。 总体来说,让仪表动起来需要2个脚本,1个动画控制器,程序里发生事情基本上就是下面这样:

  • 脚本 YFI_FlightDataInterface.cs 用于从SAVController中读取或计算大部分飞行数据。
  • 脚本 YFI_AnimatorController.cs 用于将飞行数组转换为0~1的参数以驱动仪表所属的动画控制器,可以在这里设置仪表量程等参数

不久之后我会更新一下上述过程的更多细节捏~

Intruduce(ENG)

A flight instrusments script for flight world in VRChat with SaccFlight . Including Basic-T(Altimeter, Airspeed indicator, Vertical speed indicator, Attitude Indicator,Heading indicator and Turn indicator) Example indicators come with repositories may look not that exquisitem(sorry for my poor modeling skill), but it's easy to substitute them with your own indicator models. To use another model, set the animator controller as require, set the params (SAVcontroller, animator controller, measurement range of a certain indicator etc.) for YFI_FlightDataInterface.cs and YFI_AnimatorController.cs should be enough, no added code required.

An instrument with more detail will be updated soon.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published