Skip to content

Commit

Permalink
Update vector to use z-axis
Browse files Browse the repository at this point in the history
Signed-off-by: gabsi26 <[email protected]>
  • Loading branch information
gabsi26 authored and hannobraun committed May 24, 2022
1 parent 8caae2c commit 643b3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/sweep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn sweep_shape(
let (mut bottom, source_to_bottom) = source.clone_shape();
let (mut top, source_to_top) = source.clone_shape();

if path.dot(&Vector::from([1., 1., 1.])) >= fj_math::Scalar::from_f64(0.) {
if path.dot(&Vector::from([0., 0., 1.])) >= fj_math::Scalar::from_f64(0.) {
bottom
.update()
.update_all(|surface: &mut Surface| *surface = surface.reverse())
Expand Down

0 comments on commit 643b3bb

Please sign in to comment.