Skip to content

Conversation

@NicEastvillage
Copy link
Contributor

It is now possible to do

# Automatically call ensure_started and disconnect
with MatchManager(RLBOT_SERVER_FOLDER) as man:
    man.start_match(MATCH_CONFIG_PATH)

and

# Automatically call begin_rendering, set_default_color, and end_rendering
with renderer.context(group_id='shot', default_color=renderer.red):
    renderer.draw_line_3d(car.pos, ball.pos)
    renderer.draw_line_3d(car.pos, goal.pos)
    renderer.draw_line_3d(ball.pos, goal.pos)

The addition of default color is also new.

@NicEastvillage NicEastvillage requested a review from VirxEC June 1, 2025 06:05
@VirxEC VirxEC merged commit f1fbd9a into master Jun 1, 2025
@NicEastvillage NicEastvillage deleted the context_managers branch June 1, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants