PhysicsFramesTimer
Inherits: Object
Timer in terms of physics frames.
Description
This class is used to pause RLEnvironment after n_repeat physics step to emulate real-time Godot-Python interaction.
Note
This class is not expected to be changed by user.
Signals
- signal timer_end
The signal is emitted in
stepmethod when passed number of physics frames exceeds_limit.
Property Descriptions
- (int) _limit
Number of physics steps to wait before
timer_endsignal is emitted.
Method Descriptions
- (void) _init(limit: int = 4)
Start TCPServer.
- Args:
limit: Number of physics steps to wait before
timer_endsignal is emitted.
- (void) step()
Increment counter. The method is called inside
RLEnvironment._physics_processmethod.
- (PhysicsFramesTimer) start()
Start timer. The method is called inside
RLEnvironment._stepmethod.
- (void) set_limit(new_limit: int)
Assign new
_limitvalue.- Args:
new_limit: New
limit_value.