Page 1 of 1

s3o: Attaching the hitsphere to the root object

Posted: 23 Jan 2007, 20:18
by rattle
What the title says. So when I move the root object by script the hitsphere should move as well.

I think quite a lot of people would like that, however I have no idea how much effort it is to implement (probably not as much) nor if it will break anything else.

I think it's attached to the foot print at the moment at given coordinates.

Posted: 23 Jan 2007, 20:39
by Peet
Hear, Hear!

Posted: 23 Jan 2007, 21:23
by KDR_11k
I'd prefer if it was linked to the object returned by SweetSpot in the script since the root object can't be moved without moving the rest and you might want to move the hitsphere without moving the entire model.

Posted: 23 Jan 2007, 21:25
by Argh
I'd prefer if it was linked to the object returned by SweetSpot in the script since the root object can't be moved without moving the rest and you might want to move the hitsphere without moving the entire model.
+1000, been wanting that for quite awhile. Not sure it's possible without a lot of recoding, though- the hitsphere is also being used for collisions in general, and moving that around would cause massive pain.

Posted: 23 Jan 2007, 21:34
by KDR_11k
The footprint is used for unit collisions, the hitsphere is used for telling units to back off.

Posted: 23 Jan 2007, 22:32
by rattle
I'd prefer if it was linked to the object returned by SweetSpot
Even better

Posted: 23 Jan 2007, 22:37
by Pxtl
If you're going to be hacking the hitspheres, you may as well go whole-hog and start supporting multiple hitspheres - preferably with the diameter of each sphere defined in TDF (the position would obviously be in script, since the hitsphere positions would likely be anchored to various parts).

/not actually a useful contributor

Posted: 24 Jan 2007, 06:39
by Argh
KDR, I'm pretty sure that the hitsphere is used for steering-code collision detection...

Posted: 24 Jan 2007, 10:17
by Tobi
I was trying to look into some pathfinding/collision tuning a few hours a few days ago. No success tho. But I now know for sure that (at least) footprints are used for unit<->unit collision detection.

Posted: 24 Jan 2007, 14:47
by manored
You will probaly call me a noob, but whats a unit root and a hitsphere? :-)

Posted: 24 Jan 2007, 14:55
by KDR_11k
If you don't know you probably don't need to know.

Posted: 24 Jan 2007, 16:35
by rattle
Yeah. :P

The root object is the one above all others (base, for instance). Hitsphere is s3o stuff.

Posted: 24 Jan 2007, 18:44
by manored
KDR_11k wrote:If you don't know you probably don't need to know.
You mean I in fact dont need to know or im not going to want to know it? :-)

Posted: 24 Jan 2007, 20:04
by KDR_11k
It's of no interest to the player.