diff --git a/assets/office-no-roof.glb b/assets/office-no-roof.glb new file mode 100644 index 0000000000..a58e1abf72 Binary files /dev/null and b/assets/office-no-roof.glb differ diff --git a/dimensional/simple_scene.py b/dimensional/simple_scene.py index 205f45ac03..db8d4bc8d7 100644 --- a/dimensional/simple_scene.py +++ b/dimensional/simple_scene.py @@ -1,6 +1,5 @@ import genesis as gs gs.init(backend=gs.gpu) - scene = gs.Scene( show_viewer=True, viewer_options=gs.options.ViewerOptions( @@ -14,15 +13,18 @@ # Add ground plane plane = scene.add_entity(gs.morphs.Plane()) -# Add the GLB model with fixed=True to make it static +# Add the GLB model with collision mesh specification office = scene.add_entity( gs.morphs.Mesh( - file="../assets/office.glb", + file="../assets/office-no-roof.glb", fixed=True, # Make it static euler=(-90, 180, 0), # Adjust orientation if needed pos=(-2, 0, -13.21), # Position offset (x, y, z) scale=1.0, - ) + convexify=False, # Don't create a single convex hull + merge_submeshes_for_collision = False, + ), + vis_mode='collision' # Show collision geometries ) scene.build()