From db06c683d154e1e7b36571640da704d588b2cce4 Mon Sep 17 00:00:00 2001 From: gregor Date: Tue, 28 Nov 2023 15:32:26 -0500 Subject: [PATCH] (Feat): add simScaleObjects helper function to sim.py --- pyrep/backend/sim.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyrep/backend/sim.py b/pyrep/backend/sim.py index 35b842c..2abfab1 100755 --- a/pyrep/backend/sim.py +++ b/pyrep/backend/sim.py @@ -750,6 +750,13 @@ def simScaleObject(shapeHandle, scale_x, scale_y, scale_z): _check_return(ret) +def simScaleObjects(objectHandles, scale, scalePositionsToo=False): + handles = ffi.new("int[]", objectHandles) + ret = lib.simScaleObjects(handles, len(objectHandles), scale, + scalePositionsToo) + _check_return(ret) + + def simGetObjectSizeFactor(shapeHandle): return lib.simGetObjectSizeFactor(shapeHandle)