示例#1
0
    def __init__(self):
        a = Input()
        a.throttle = True

        b = Input()
        b.jump = True
        b.pitch = 1.0

        movements = [
            MovementInInterval(0.0, 3.0, a),
            MovementInInterval(3.0, 4.2, b)
        ]
        super().__init__(movements, clone_delay=0.8)
示例#2
0
 def set_controls(self, controls: Input):
     controls.throttle = 1