Unbuilt geometry collision? :O

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Unbuilt geometry collision? :O

Post 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. :o 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. :roll:
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Unbuilt geometry collision? :O

Post by AceMastermind »

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
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Unbuilt geometry collision? :O

Post 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. :o
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Unbuilt geometry collision? :O

Post 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_-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
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Unbuilt geometry collision? :O

Post by Marth8880 »

I tried my Rocket Drone and the stock drop turret you mentioned.
Post Reply