Page 1 of 1
Unbuilt geometry collision? :O
Posted: Thu Nov 22, 2012 6:56 am
by Marth8880
Has anybody figured out a way to give unbuilt geometry (such as for a turret) collision? I'm trying to make a dispensable turret that you have to build (hence unbuilt) but the unbuilt geometry falls through the ground when dispensed. The problem can't be with the msh because no matter what msh is used for the UnbuiltGeometry, it still falls through the ground, not even the same exact msh used for the actual built turret itself.

Giving the turret a gravity factor of 0
sort of works; the problem is the unbuilt geometry just sorta floats there in mid-air, not even aligned vertically.

Re: Unbuilt geometry collision? :O
Posted: Thu Nov 22, 2012 1:43 pm
by AceMastermind
To keep objects from falling through terrain you'll need to use collision primitives.
Re: Unbuilt geometry collision? :O
Posted: Thu Nov 22, 2012 4:12 pm
by Marth8880
I already tried them and they didn't work. Like I said, none of my turrets (or the stock turrets) that DO have collision primitives worked; they all fell through the terrain as well.

Re: Unbuilt geometry collision? :O
Posted: Thu Nov 22, 2012 7:05 pm
by AceMastermind
Which particular turrets did you try?
- C:\BF2_ModTools\assets\sides\Common\msh\com_weap_inf_dropturret.msh
^Theres an example asset. A dispensable object which doesn't fall through the terrain.
p_-vb
t_cube is what keeps it from going through the terrain. If collision primitives didn't work then that object would fall through also.
Mines don't have terrain collision but they don't fall through, likely due to the mine classlabel capabilities. com_weap_inf_dropturret.msh is used with the portableturret classlabel. These classlabels also go hand in hand with memorypools set in the LUA.
EDIT
Here's another working example you can pick apart:
http://www.gametoast.com/forums/viewtop ... 64&t=11952
There is a despensable wall in the Jinglin Town assets you can also take a look at. I believe collision is auto generated ingame for some objects but not others depending on the classlabel type. You haven't posted any ODFs to compare it to those that work so there really isn't anything we can do for you until then.
Re: Unbuilt geometry collision? :O
Posted: Thu Nov 22, 2012 9:38 pm
by Marth8880
I tried my Rocket Drone and the stock drop turret you mentioned.