Skip to content

Commit decd7fb

Browse files
committed
fix deprecated sim.reorientShapeBoundingBox
1 parent b03a536 commit decd7fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Floor plan importer.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function sysCall_init()
156156
handle = sim.groupShapes(handles, false)
157157
sim.setObjectAlias(handle, 'FloorPlan')
158158
sim.setObjectInt32Param(handle, sim.shapeintparam_respondable, respondable and 1 or 0)
159-
sim.reorientShapeBoundingBox(handle, -1)
159+
sim.alignShapeBB(handle, {0, 0, 0, 0, 0, 0, 1})
160+
sim.relocateShapeFrame(handle, {0, 0, 0, 0, 0, 0, 0})
160161
sim.setObjectSpecialProperty(
161162
handle, sim.objectspecialproperty_collidable | sim.objectspecialproperty_measurable |
162163
sim.objectspecialproperty_detectable_all | sim.objectspecialproperty_renderable

0 commit comments

Comments
 (0)