Skip to content

Commit

Permalink
(Feat): add simScaleObjects helper function to sim.py (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpumacay authored Jul 2, 2024
1 parent 3b23367 commit 0c0d399
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyrep/backend/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0c0d399

Please sign in to comment.