From 0c0d399d75eff4861001217466f4a969503f4770 Mon Sep 17 00:00:00 2001 From: gregor Date: Tue, 2 Jul 2024 03:14:55 -0500 Subject: [PATCH] (Feat): add simScaleObjects helper function to sim.py (#363) --- 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)