Unbuilt geometry collision? :O
Moderator: Moderators
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Unbuilt geometry collision? :O
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. 
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Unbuilt geometry collision? :O
To keep objects from falling through terrain you'll need to use collision primitives.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Unbuilt geometry collision? :O
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. 
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Unbuilt geometry collision? :O
Which particular turrets did you try?
p_-vbt_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.
- C:\BF2_ModTools\assets\sides\Common\msh\com_weap_inf_dropturret.msh
p_-vbt_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.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Unbuilt geometry collision? :O
I tried my Rocket Drone and the stock drop turret you mentioned.
