Skip to content

Latest commit

 

History

History
87 lines (48 loc) · 2.27 KB

README.md

File metadata and controls

87 lines (48 loc) · 2.27 KB

Butterfly Transform

Unity ECS Demo of Orbit Mechanics

The current code and resource is hosted on PlasticHub

image

image

Online Doc

https://c9mtyw3n4q.feishu.cn/docx/CxVidOvNso2sT2xuX3ecN9FmnGf

Unit Design

  • Currently Implementation 3 types of block

    • Structural
    • Main Thruster(for orbit maneuver)
    • Side Thruster(for rotation adjestment)
  • Move hard-coded block to data base

  • Emission texture supported

  • Multiple material supported

  • Dynamic material supported

image

Orbit Mechanics

Stateful Physics Model

  • prediection shift fixed
  • implement object watch mechanism :unwatch object is excluded by orbit prediction

image

Orbit Prediction

  • General orbit section predication supported
  • Distinct section color
  • Planet-Hit prediction termination
  • View Scaled orbit opacity
  • Optimized by using Hermite Interpolation
  • Orbit maneuver supported

image

image

Orbit Maneuver

  • Physics-based Orientation Control
  • Dynamic maneuver and animated maneuver system
  • Orbit state system rewrited

Orbit Maneuver Algorithm

  • Lambert solver implemented

image

Unit Control

  • Input System Rewrited
  • Test Spawn Impeachmented

Destruction

Demo Download see https://github.com/StellarWarp/OrbitSnadBox/releases

Operation guide:

  • Right click and drag to move the camera
  • Hold/release space to quickly toggle placement/selection mode
  • In the selection mode, left-click to frame the object, and a circle will appear after the frame selection, which can be dragged to move the object
  • Left click to place objects in placement mode