@@ -3962,18 +3962,15 @@ void beam_handle_collisions(beam *b)
39623962 if (wi->flash_impact_weapon_expl_effect .isValid ()) {
39633963 auto particleSource = particle::ParticleManager::get ()->createSource (wi->flash_impact_weapon_expl_effect );
39643964 particleSource->setHost (beam_hit_make_effect_host (b, &Objects[target], b->f_collisions [idx].cinfo .hit_submodel , &b->f_collisions [idx].cinfo .hit_point_world , &b->f_collisions [idx].cinfo .hit_point ));
3965- // TODO: Commenting out until the collision code can be enhanced to return a valid normal when a beam collides with an edge.
3966- // (This can happen when a slash beam moves off the edge of a model; edge_hit will be true and hit_normal will be 0,0,0.)
3967- // particleSource->setNormal(worldNormal);
3965+ particleSource->setNormal (worldNormal);
39683966 particleSource->setTriggerRadius (width);
39693967 particleSource->finishCreation ();
39703968 }
39713969
39723970 if (do_expl){
39733971 auto particleSource = particle::ParticleManager::get ()->createSource (wi->impact_weapon_expl_effect );
39743972 particleSource->setHost (beam_hit_make_effect_host (b, &Objects[target], b->f_collisions [idx].cinfo .hit_submodel , &b->f_collisions [idx].cinfo .hit_point_world , &b->f_collisions [idx].cinfo .hit_point ));
3975- // TODO: see comment above
3976- // particleSource->setNormal(worldNormal);
3973+ particleSource->setNormal (worldNormal);
39773974 particleSource->setTriggerRadius (width);
39783975 particleSource->finishCreation ();
39793976 }
@@ -4029,8 +4026,7 @@ void beam_handle_collisions(beam *b)
40294026 auto particleSource = particle::ParticleManager::get ()->createSource (wi->piercing_impact_effect );
40304027
40314028 particleSource->setHost (beam_hit_make_effect_host (b, &Objects[target], b->f_collisions [idx].cinfo .hit_submodel , &b->f_collisions [idx].cinfo .hit_point_world , &b->f_collisions [idx].cinfo .hit_point ));
4032- // TODO: see comment above
4033- // particleSource->setNormal(worldNormal);
4029+ particleSource->setNormal (worldNormal);
40344030 particleSource->setTriggerRadius (width);
40354031 particleSource->finishCreation ();
40364032 }
0 commit comments