|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
Public 成员函数 | |
| GfxSolarSystem () | |
| ~GfxSolarSystem () | |
| bool | initialize () |
| void | update (double deltaTime) |
| osg::Node * | getNode () |
| void | addCelestialBody (GfxCelestialBody *body) |
| void | removeCelestialBody (GfxCelestialBody *body) |
| GfxCelestialBody * | getCelestialBody (const std::string &name) |
| bool | createSun () |
| bool | createPlanet (const std::string &name, double radius, double orbitalRadius, double orbitalSpeed, double rotationSpeed, const osg::Vec4 &color) |
| bool | createCompleteSolarSystem () |
| bool ast::GfxSolarSystem::createPlanet | ( | const std::string & | name, |
| double | radius, | ||
| double | orbitalRadius, | ||
| double | orbitalSpeed, | ||
| double | rotationSpeed, | ||
| const osg::Vec4 & | color ) |
创建行星
| name | 行星名称 |
| radius | 行星半径 |
| orbitalRadius | 轨道半径 |
| orbitalSpeed | 公转速度 |
| rotationSpeed | 自转速度 |
| color | 行星颜色 |
| GfxCelestialBody * ast::GfxSolarSystem::getCelestialBody | ( | const std::string & | name | ) |
获取天体
| name | 天体名称 |
| void ast::GfxSolarSystem::update | ( | double | deltaTime | ) |
更新太阳系状态
| deltaTime | 时间增量(秒) |