Skip to content

fix null vector assertion in slash beam collisions#7038

Merged
BMagnu merged 1 commit into
scp-fs2open:masterfrom
Goober5000:beam_edge_hit
Sep 15, 2025
Merged

fix null vector assertion in slash beam collisions#7038
BMagnu merged 1 commit into
scp-fs2open:masterfrom
Goober5000:beam_edge_hit

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor

Beams in general, and slash beams most likely, can collide with the edge of a model, which will cause a non-normalized vector assertion when particle effects are created. So comment out the normal assignment until a more comprehensive fix can be coded.

@Goober5000 Goober5000 added this to the Release 25.0 milestone Sep 15, 2025
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. particles An item related to the particle system labels Sep 15, 2025
Beams in general, and slash beams most likely, can collide with the edge of a model, which will cause a non-normalized vector assertion when particle effects are created.  So comment out the normal assignment until a more comprehensive fix can be coded.

@BMagnu BMagnu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long term we want to have a collision option that, for an edge hit, returns a normal that's either the same as one of the adjacent faces, or an interpolation between them.
That way, at least for particle spray, we can get fully consistent behaviour and proper normals

@BMagnu BMagnu merged commit b0166dd into scp-fs2open:master Sep 15, 2025
20 checks passed
@Goober5000 Goober5000 deleted the beam_edge_hit branch September 15, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. particles An item related to the particle system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants