We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae98a6 commit af2666dCopy full SHA for af2666d
src/nodes/fields.rs
@@ -184,7 +184,7 @@ impl FieldTrait for Field {
184
v.length() + q.x.max(q.y.max(q.z)).min(0_f32)
185
}
186
Shape::Cylinder(CylinderShape { length, radius }) => {
187
- let d = vec2(p.xy().length().abs() - radius, p.z.abs() - (length * 0.5));
+ let d = vec2(p.xz().length().abs() - radius, p.y.abs() - (length * 0.5));
188
d.x.max(d.y).min(0.0) + d.max(vec2(0.0, 0.0)).length()
189
190
Shape::Sphere(radius) => p.length() - radius,
0 commit comments