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 step method when passed number of physics frames exceeds _limit .

Property Descriptions

(int) _limit

Number of physics steps to wait before timer_end signal is emitted.

Method Descriptions

(void) _init(limit: int = 4)

Start TCPServer.

Args:

limit: Number of physics steps to wait before timer_end signal is emitted.

(void) step()

Increment counter. The method is called inside RLEnvironment._physics_process method.

(PhysicsFramesTimer) start()

Start timer. The method is called inside RLEnvironment._step method.

(void) set_limit(new_limit: int)

Assign new _limit value.

Args:

new_limit: New limit_ value.