Skip to content

Commit

Permalink
(Feat): add simScaleObjects helper function to sim.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wpumacay committed Nov 28, 2023
1 parent 076ca15 commit db06c68
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 db06c68

Please sign in to comment.