lucas-emery / rocket-league-gym

A Gym-like environment for Reinforcement Learning in Rocket League
Apache License 2.0
205 stars 48 forks source link

How to set ball respown position? #11

Closed syKevinPeng closed 3 years ago

syKevinPeng commented 3 years ago

Hi, as the title. How do I set a ball's initial position?

AechPro commented 3 years ago

This functionality is not available in RLGym at the moment.

vulnic commented 3 years ago

Hello!

If I'm not mistaken, the gym.reset() function is sending a header(RLGYM_RESET_GAME_STATE_MESSAGE_HEADER)+body to the RLGym.dll plugin, which somehow parses this to ask Rocket League to reset the ball/car to kickoff position. Do you foresee it being possible to add a state vector to the header/body of the message for custom ball/car resetting? We'd like to create exercises for our agent!

Thanks!

AechPro commented 3 years ago

State setting is possible, and is in our plans for the future. Unfortunately both of our active developers are currently occupied with other work, so it may be some time before we are able to implement that feature.

vulnic commented 3 years ago

Got it, thanks!