rocket_league.api.car
Classes
Abstract base class for generic types. |
Module Contents
- class rocket_league.api.car.Car
Bases:
Generic
[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
- team_num: int
- hitbox_type: int
- ball_touches: int
- bump_victim_id: rlgym.api.AgentID | None
- demo_respawn_timer: float
- wheels_with_contact: tuple[bool, bool, bool, bool]
- supersonic_time: float
- boost_amount: float
- boost_active_time: float
- handbrake: float
- is_jumping: bool
- has_jumped: bool
- is_holding_jump: bool
- jump_time: float
- has_flipped: bool
- has_double_jumped: bool
- air_time_since_jump: float
- flip_time: float
- flip_torque: numpy.ndarray
- is_autoflipping: bool
- autoflip_timer: float
- autoflip_direction: float
- _inverted_physics: rocket_league.api.physics_object.PhysicsObject
- __slots__
- property is_blue: bool
- property is_orange: bool
- property is_demoed: bool
- property is_boosting: bool
- property is_supersonic: bool
- property on_ground: bool
- property has_flip: bool
- property can_flip: bool
- property is_flipping: bool
- property had_car_contact: bool
- property inverted_physics: rocket_league.api.physics_object.PhysicsObject