MCPcopy Create free account
hub / github.com/chrxh/alien / processParticle

Method processParticle

source/Gui/InspectorWindow.cpp:708–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void _InspectorWindow::processParticle(ParticleDescription particle)
709{
710 auto origParticle = particle;
711 auto energy = toFloat(particle.energy);
712 AlienImGui::InputFloat(AlienImGui::InputFloatParameters().name("Energy").textWidth(ParticleContentTextWidth), energy);
713
714 particle.energy = energy;
715 if (particle != origParticle) {
716 _simulationFacade->changeParticle(particle);
717 }
718}
719
720float _InspectorWindow::calcWindowWidth() const
721{

Callers

nothing calls this directly

Calls 3

toFloatFunction · 0.85
changeParticleMethod · 0.45

Tested by

no test coverage detected