gravit icon indicating copy to clipboard operation
gravit copied to clipboard

Select and follow a particle or group of particles

Open gak opened this issue 13 years ago • 3 comments

There are a few ways to do this, but I'm not sure of what is the best way of doing it.

Future enhancements could include:

  • Modify particle trails so that they are relative to the particle
  • Select a cluster of particles that belong to an initial galaxy (would need integration with lua)

gak avatar May 01 '12 10:05 gak

A suggestion is to use the left mouse button to click on a single particle, or a group of particles by dragging.

Leaving the right mouse button to move the camera angle.

This might confuse existing users, but I don't think it's a big deal if the ChangeLog has the appropriate information in it.

Another possibility is to use modifier keys so that you can do something special like select all other particles from the same spawn "group", or selecting all other particles within the rang of the selected particle.

gak avatar May 04 '12 11:05 gak

I think that particles are normally too fast to select individual ones with the mouse. But it might work that users point (and click) into a certains direction, and gravit could "lock" onto the nearest particle group. We could use the right mouse button for this. --> we need some kind of "spawn groups", and this schould be easy to implement in LUA (a "start_particle_group" call would be enough).

If we have groups (or a handfull of "special" particles), we could even build a drop-down menu, where people can select the group to follow.

FrMo avatar May 04 '12 20:05 FrMo

The drop-down menu is a good idea. Once we have particle groups, we can also add a new colour mode for it.

My suggestion earlier for selecting one particle would search for the nearest particle to the mouse, so the user doesn't have to be accurate. I would imagine the user would want to pause the simulation before selecting particles, so it is easier to select.

With the mouse buttons, generally left is used for an action and right or middle for camera manipulation, at least in games.

So I'm currently thinking these actions:

  • RMB click or LMB click away from particles, deselect all particles
  • RMB drag, camera movement (as usual)
  • LMB click, select a group
  • LMB drag, select multiple groups with a selection square
  • CTRL+LMB click, select a single particle
  • CTRL+LMB drag, draw a selection square and select individual particles
  • SHIFT+LMB click, add a particle group to selection
  • SHIFT+LMB drag, draw a selection square and add a particle group to selection
  • ALT+LMB same as shift, except remove from selection

You'll be able to mix CTRL and SHIFT to add single particles, instead of groups. Also CTRL and ALT to remove single particles.

gak avatar May 04 '12 21:05 gak