# -*- coding:utf-8 -*-
# title           :木星
# description     :木星
# author          :Python超人
# date            :2023-02-11
# link            :https://gitcode.net/pythoncr/
# python_version  :3.8
# ==============================================================================
from bodies.body import Body, AU


class Jupiter(Body):
    """
    木星
    ------------------------
      转轴倾角: 3.13°
      自转周期: 9.93 小时，自转角速度约为 36.2537 度/小时 = 360/(9.93)
    远日点距离: 5.4588 天文单位
    近日点距离: 4.9501 天文单位
      逃逸速度: 59.5 km/s
    　公转速度: 13.06 km/s
    　天体质量: 1.8982✕10²⁷ kg(317.8 M⊕)
    　平均密度: 1.326 g/cm³ -> -> 1.326✕10³ kg/m³
    """
    def __init__(self, name="木星", mass=1.8982e27,
                 init_position=[0, 0, 5.19 * AU],
                 init_velocity=[-13.06, 0, 0],
                 texture="jupiter.png", size_scale=1.0, distance_scale=1.0,
                 rotation_speed=36.2537, ignore_mass=False, trail_color=None, show_name=False):
        params = {
            "name": name,
            "mass": mass,
            "init_position": init_position,
            "init_velocity": init_velocity,
            "density": 1.326e3,
            "color": (173, 121, 92),
            "texture": texture,
            "size_scale": size_scale,
            "distance_scale": distance_scale,
            "rotation_speed": rotation_speed,
            "ignore_mass": ignore_mass,
            "trail_color": trail_color,
            "show_name": show_name
        }
        super().__init__(**params)


if __name__ == '__main__':
    jupiter = Jupiter()
    print(jupiter)
