s3o: Attaching the hitsphere to the root object

s3o: Attaching the hitsphere to the root object

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

s3o: Attaching the hitsphere to the root object

Post 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.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Hear, Hear!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post 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.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post 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.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

The footprint is used for unit collisions, the hitsphere is used for telling units to back off.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I'd prefer if it was linked to the object returned by SweetSpot
Even better
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post 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
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

KDR, I'm pretty sure that the hitsphere is used for steering-code collision detection...
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post 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.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

You will probaly call me a noob, but whats a unit root and a hitsphere? :-)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

If you don't know you probably don't need to know.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Yeah. :P

The root object is the one above all others (base, for instance). Hitsphere is s3o stuff.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post 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? :-)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

It's of no interest to the player.
Post Reply

Return to “Feature Requests”