Page 1 of 1

Unit selection problems

Posted: 06 Sep 2005, 14:48
by IMSabbel
Spring has some problems with unit selection. It seems when clicking, a single check against the bounding sphere is made, which for example requires the camera to be rotated to select the clearly visible commander behind 2 wind-generators, or makes it near impossible to select factories in which huge units are building (Adv. Shipyard when building a Carrier or Warlord, for example).

At mouse clicks only happen very rarely compared to other kind of collision checks, a "real", polygon based hitscan algorithm wouldnt hurt performance too much, right?

Posted: 06 Sep 2005, 15:23
by Warlord Zsinj
I have noticed this issue as well. It can be particularly frustrating in heated moments; and is particularly pronounced when using (my favourite) Total War camera style.

It was said that a rectangular prism bounding box (if not polygonal) was going to be used for collision detection so that larger features could be used without confusing units (large buildings and trees and the like); perhaps this implementation could be sped up, thus solving both problems?

Posted: 07 Sep 2005, 09:39
by PauloMorfeo
If you guys draw a selection box instead of clicking selection button, it will select units acording to it's box near the ground, instead.