Skip to content

[Bug] zero-mass nose cone results in NaN #2785

@JoePfeiffer

Description

@JoePfeiffer

Describe the bug

The attached .ork file is the Simple Model Rocket example, modified so the nose cone's thickness is set to 0, and its shoulder's thickness is also set to 0. When it is simulated, the result is a stack dump due to a NaN in the calculation of the longitudinal moment of inertia.

This is a regression from 23.09; 23.09 was able to handle it.

To Reproduce

  1. Load the .ork
  2. Run a sim

...

Screenshots / .ork file

0-mass-nosecond.ork.zip

OpenRocket version

24.12.RC.01

What platform are you running on?

Linux

Additional context

PR incoming

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions