rocket_league.api ================= .. py:module:: rocket_league.api Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/rocket_league/api/car/index /autoapi/rocket_league/api/game_config/index /autoapi/rocket_league/api/game_state/index /autoapi/rocket_league/api/physics_object/index /autoapi/rocket_league/api/utils/index Classes ------- .. autoapisummary:: rocket_league.api.Car rocket_league.api.GameConfig rocket_league.api.GameState rocket_league.api.PhysicsObject Package Contents ---------------- .. py:class:: Car Bases: :py:obj:`Generic`\ [\ :py:obj:`rlgym.api.AgentID`\ ] Abstract base class for generic types. A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:: class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc. This class can then be used as follows:: def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default .. py:attribute:: team_num :type: int .. py:attribute:: hitbox_type :type: int .. py:attribute:: ball_touches :type: int .. py:attribute:: bump_victim_id :type: Optional[rlgym.api.AgentID] .. py:attribute:: demo_respawn_timer :type: float .. py:attribute:: wheels_with_contact :type: tuple[bool, bool, bool, bool] .. py:attribute:: supersonic_time :type: float .. py:attribute:: boost_amount :type: float .. py:attribute:: boost_active_time :type: float .. py:attribute:: handbrake :type: float .. py:attribute:: is_jumping :type: bool .. py:attribute:: has_jumped :type: bool .. py:attribute:: is_holding_jump :type: bool .. py:attribute:: jump_time :type: float .. py:attribute:: has_flipped :type: bool .. py:attribute:: has_double_jumped :type: bool .. py:attribute:: air_time_since_jump :type: float .. py:attribute:: flip_time :type: float .. py:attribute:: flip_torque :type: numpy.ndarray .. py:attribute:: is_autoflipping :type: bool .. py:attribute:: autoflip_timer :type: float .. py:attribute:: autoflip_direction :type: float .. py:attribute:: physics :type: rocket_league.api.physics_object.PhysicsObject .. py:attribute:: _inverted_physics :type: rocket_league.api.physics_object.PhysicsObject .. py:attribute:: __slots__ .. py:property:: is_blue :type: bool .. py:property:: is_orange :type: bool .. py:property:: is_demoed :type: bool .. py:property:: is_boosting :type: bool .. py:property:: is_supersonic :type: bool .. py:property:: on_ground :type: bool .. py:property:: has_flip :type: bool .. py:property:: can_flip :type: bool .. py:property:: is_flipping :type: bool .. py:property:: had_car_contact :type: bool .. py:property:: inverted_physics :type: rocket_league.api.physics_object.PhysicsObject .. py:class:: GameConfig .. py:attribute:: gravity :type: float .. py:attribute:: boost_consumption :type: float .. py:attribute:: dodge_deadzone :type: float .. py:attribute:: __slots__ .. py:class:: GameState Bases: :py:obj:`Generic`\ [\ :py:obj:`rlgym.api.AgentID`\ ] Abstract base class for generic types. A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:: class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc. This class can then be used as follows:: def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default .. py:attribute:: tick_count :type: int .. py:attribute:: goal_scored :type: bool .. py:attribute:: config :type: rocket_league.api.game_config.GameConfig .. py:attribute:: cars :type: Dict[rlgym.api.AgentID, rocket_league.api.car.Car[rlgym.api.AgentID]] .. py:attribute:: ball :type: rocket_league.api.physics_object.PhysicsObject .. py:attribute:: _inverted_ball :type: rocket_league.api.physics_object.PhysicsObject .. py:attribute:: boost_pad_timers :type: numpy.ndarray .. py:attribute:: _inverted_boost_pad_timers :type: numpy.ndarray .. py:attribute:: __slots__ .. py:property:: scoring_team :type: Optional[int] .. py:property:: inverted_ball :type: rocket_league.api.physics_object.PhysicsObject .. py:property:: inverted_boost_pad_timers :type: numpy.ndarray .. py:class:: PhysicsObject .. py:attribute:: INV_VEC .. py:attribute:: INV_MTX .. py:attribute:: position :type: numpy.ndarray .. py:attribute:: linear_velocity :type: numpy.ndarray .. py:attribute:: angular_velocity :type: numpy.ndarray .. py:attribute:: _quaternion :type: Optional[numpy.ndarray] .. py:attribute:: _rotation_mtx :type: Optional[numpy.ndarray] .. py:attribute:: _euler_angles :type: Optional[numpy.ndarray] .. py:attribute:: __slots__ .. py:method:: inverted() -> T .. py:property:: quaternion :type: numpy.ndarray .. py:property:: rotation_mtx :type: numpy.ndarray .. py:property:: euler_angles :type: numpy.ndarray .. py:property:: forward :type: numpy.ndarray .. py:property:: right :type: numpy.ndarray .. py:property:: left :type: numpy.ndarray .. py:property:: up :type: numpy.ndarray .. py:property:: pitch :type: float .. py:property:: yaw :type: float .. py:property:: roll :type: float