Page 1 of 1
Selective collision
Posted: Tue Jun 09, 2009 11:01 pm
by Splat
does anyon know how to make it so a cirtain object only collides with people and not ships, so it is something like the hangar shields in the space maps?
Re: selective collision
Posted: Tue Jun 09, 2009 11:52 pm
by Frisbeetarian
If you have an example of something that does what you want, why don't you just look up that something (the hanger shield in this case) in the assets and see what it uses?
Re: selective collision
Posted: Wed Jun 10, 2009 12:42 am
by DarthD.U.C.K.
this is done via prefixes for the collision in xsi
the most collisionprimitives are called p_-svbot-xxx
the charachters stand for different colisiontypes:
s-soldier
v-vehicle
b-building
o-ordnance
t-terrain
you can have various collisions for various types via the prefixes, like p_-sbot or p_-so would be the prefixes for the hangarshields
there are also odf-lines that can qassign primitives to collisiontypes but i think they are overwritten by the prefixes..
Re: selective collision
Posted: Wed Jun 10, 2009 3:38 am
by Frisbeetarian
Instead of telling him all that, you could have just referred him to the art_guide.doc.
I can't speak as to whether or not collision primitives override the ODF lines (I referred him to the one that he needs in the first reply), but I do know that it would be best to test the ODF lines first instead of importing an object into XSI, redoing the collision, then having someone export it with the full version.
Re: selective collision
Posted: Wed Jun 10, 2009 9:14 am
by DarthD.U.C.K.
why is it bad to tell him this? posts not words are counted
the shield uses the prefixes an no odf-commands by the way
i think splat has the full version of xsi or atleast someone who can export stuff for him
Re: selective collision
Posted: Wed Jun 10, 2009 9:29 am
by FragMe!
If he is creating objects from scratch then doing it in XSI is the better way.
If using stock models then you can put parameters in the odf like:
VehicleCollision = "none" that will make it so the object does not have vehicle. collision.
You would do that in the odf of the object you do not want to collide with not the vehicles odf. BTW this would affect flyers as well as any other vehicle.
You can do the same thing for Soldier, Ordnance and Building collisions, wouldn't recommend it for terrain or you will be under your map.
Re: selective collision
Posted: Wed Jun 10, 2009 3:56 pm
by Splat
thx, so i would have to name the collision in xsi p-vbot-xxx? That would allow flyers through?
Re: selective collision
Posted: Wed Jun 10, 2009 4:15 pm
by FragMe!
it would be p_-sbot-somename
given what D.U.C.K. said earlier v is for vehicle so it cannot be in the name.
also make sure you understand what you can and cannot do with primitives when it comes to sizing and scaling, only cubes can be scaled the others have to be done in the pop up creation box. And do not freeze a primitive, this means for both transforms and model if you do it loses it's pimitiveness and will not work properly in game.
Re: selective collision
Posted: Wed Jun 10, 2009 6:58 pm
by Frisbeetarian
FragMe! wrote:If he is creating objects from scratch then doing it in XSI is the better way.
If using stock models then you can put parameters in the odf
Agreed, I was assuming that he was talking about using stock models, my mistake.
DarthD.U.C.K. wrote:the shield uses the prefixes an no odf-commands by the way
Wrong:
imp_cap_stardestroyer_shield.odf
cis_fedcruiser_shield_blue.odf
Re: selective collision
Posted: Wed Jun 10, 2009 8:52 pm
by AceMastermind
DarthD.U.C.K. wrote:...the characters stand for different collisiontypes:
s-soldier
v-vehicle
b-building
o-ordnance
t-terrain
You forgot one(undocumented):
f-flag
Allows flyers to pick up the flag like in space ctf, this one is used alone in stock examples.
Re: Selective collision
Posted: Thu Jun 11, 2009 1:04 am
by DarthD.U.C.K.
Frisbeetarian wrote:
DarthD.U.C.K. wrote:the shield uses the prefixes an no odf-commands by the way
Wrong:
imp_cap_stardestroyer_shield.odf
cis_fedcruiser_shield_blue.odf
Right:
all_cap_rebelcruiser_shield.odf
Re: Selective collision
Posted: Thu Jun 11, 2009 3:05 am
by Frisbeetarian
...which is not used, check ZE.
Re: Selective collision
Posted: Thu Jun 11, 2009 7:42 am
by DarthD.U.C.K.
you are right 0.o
wierd that i opened the only shield odf and msh thats has primitivecollision and ist unse dingame