def __init__(self, position, radius): BaseGameEntity.__init__(self, position, radius) self.velocity = Vector2(0, 1) self.head_direction = Vector2(0, 1) # 指向实体的朝向 self.side_direction = self.head_direction.perp() # 垂直朝向的向量 self.mass = 10.0 # 质量 self.max_speed = 1.0 # 最大速度 self.max_force = 0 # 最大力 self.max_turn_rate = 0 # 弧度每秒
def __init__(self): BaseGameEntity.__init__(self)
def __init__(self, game_world, position, radius, tag=False, scale=(1.0, 1.0)): BaseGameEntity.__init__(self, position, radius, tag, scale) self.game_world = game_world