Skip to content

Commit

Permalink
Add minimum height to vfx
Browse files Browse the repository at this point in the history
  • Loading branch information
haihala committed Jul 28, 2024
1 parent 137f71f commit a823ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/src/assets/vfx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn handle_requests(
for VfxRequest { effect, position } in particles.queue.drain(..).collect::<Vec<_>>().into_iter()
{
let mesh = particles.meshes.get(&effect).unwrap().clone();
let transform = Transform::from_translation(position + Vec3::Z);
let transform = Transform::from_translation(position.with_y(position.y.max(0.8)) + Vec3::Z);
match effect {
VisualEffect::Hit => {
let material_handle = particles.hit_spark_material.clone();
Expand Down

0 comments on commit a823ee4

Please sign in to comment.