Skip to content

Commit

Permalink
Prevent render collisions between drawings and lift floors
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
  • Loading branch information
mxgrey committed Aug 10, 2023
1 parent e5a73a1 commit aa44f41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rmf_site_editor/src/site/lift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ pub fn update_lift_cabin(
let cabin_tf = match cabin {
LiftCabin::Rect(params) => {
let Aabb { center, .. } = params.aabb();
let cabin_tf = Transform::from_translation(Vec3::new(center.x, center.y, 0.));
let cabin_tf = Transform::from_translation(
Vec3::new(center.x, center.y, FLOOR_LAYER_START)
);
let floor_mesh: Mesh = make_flat_rect_mesh(
params.depth + 2.0 * params.thickness(),
params.width + 2.0 * params.thickness(),
Expand Down

0 comments on commit aa44f41

Please sign in to comment.