To vary the stability, we can change the center of pressure or center of mass.
Since OpenRocket calculates the center of pressure as a sum over all components, it is not straight-forward to change the CoP.
Same for the CoM. There would be the option via the postMassCalculation listener, but mass_data of type RigidBody has no method to change its attributes.
https://github.com/openrocket/openrocket/blob/44e685610317dc4731d58d66891b5f7615a77534/core/src/net/sf/openrocket/simulation/listeners/SimulationListenerHelper.java#L537
What would be the most elegant way doing this? Adding an extra component with dummy mass to change CoP is the brute-force method then.
To vary the stability, we can change the center of pressure or center of mass.
Since OpenRocket calculates the center of pressure as a sum over all components, it is not straight-forward to change the CoP.
Same for the CoM. There would be the option via the
postMassCalculationlistener, but mass_data of type RigidBody has no method to change its attributes.https://github.com/openrocket/openrocket/blob/44e685610317dc4731d58d66891b5f7615a77534/core/src/net/sf/openrocket/simulation/listeners/SimulationListenerHelper.java#L537
What would be the most elegant way doing this? Adding an extra component with dummy mass to change CoP is the brute-force method then.