From 9cb8f19c7230e957960b8851da875875204fbe5b Mon Sep 17 00:00:00 2001 From: sergi-e Date: Thu, 9 Apr 2020 14:41:28 +0200 Subject: [PATCH] Added method to set radius in hybrid mode. --- Docs/python_api.md | 4 ++++ PythonAPI/docs/client.yml | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/Docs/python_api.md b/Docs/python_api.md index b971b700c..db2ee0cfa 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -1506,6 +1506,10 @@ Default is 30. Exceeding a speed limit can be done using negative percentages. Enables or disables the hybrid physics mode. In this mode, vehicle's farther than a certain radius from the ego vehicle will have their physics disabled. Computation cost will be reduced by not calculating vehicle dynamics. Vehicles will be teleported. - **Parameters:** - `enabled` (_bool_) – If __True__, enables the hybrid physics. +- **set_hybrid_mode_radius**(**self**, **r**=70.0) +With hybrid physics on, changes the radius of the area of influence where physics are enabled. + - **Parameters:** + - `r` (_float_) – New radius where physics are enabled. --- diff --git a/PythonAPI/docs/client.yml b/PythonAPI/docs/client.yml index 4380cc0f0..cf847c94f 100644 --- a/PythonAPI/docs/client.yml +++ b/PythonAPI/docs/client.yml @@ -418,3 +418,13 @@ doc: > Enables or disables the hybrid physics mode. In this mode, vehicle's farther than a certain radius from the ego vehicle will have their physics disabled. Computation cost will be reduced by not calculating vehicle dynamics. Vehicles will be teleported. # -------------------------------------- + - def_name: set_hybrid_mode_radius + params: + - param_name: r + type: float + default: 70.0 + doc: > + New radius where physics are enabled. + doc: > + With hybrid physics on, changes the radius of the area of influence where physics are enabled. + # --------------------------------------