def __init__(self, index=-1, name="Unknown", team=0, pos=Vec3(), vel=Vec3(), ang_vel=Vec3(), rot=Mat33(), time=0.0): self.id = index self.name = name self.team = team self.pos = pos self.vel = vel self.rot = rot self.ang_vel = ang_vel self.time = time self.is_demolished = False self.jumped = False self.double_jumped = False self.on_ground = True self.supersonic = False self.last_expected_time_till_reach_ball = 3 self.last_input = SimpleControllerState()
def __init__(self, index=-1, name="Unknown", team=0, pos=Vec3(), vel=Vec3(), ang_vel=Vec3(), rot=Mat33(), time=0.0): self.id = index self.name = name self.team = team self.team_sign = -1 if team == 0 else 1 self.pos = pos self.vel = vel self.rot = rot self.ang_vel = ang_vel self.time = time self.is_demolished = False self.jumped = False self.double_jumped = False self.on_ground = True self.supersonic = False self.last_quick_chat = None self.last_expected_time_till_reach_ball = 3 self.last_input = SimpleControllerState() # Analytic info self.effective_pos = pos # A point a bit in front of them self.objective = Objective.UNKNOWN self.possession = 0 self.onsite = False self.reach_ball_time = 0 self.last_ball_touch = 0.0