Home   Help Search Login Register  

Author Topic: what did I do wrong?  (Read 1140 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
what did I do wrong?
« on: 19 Feb 2004, 00:45:18 »
This is the first addon I created myself with my current 3D modeling skills (see attached).  The collision detection is ineffective.  I suspect I did not do something right with the geometry lods.    What is the problem?

Thanks

Kaliyuga

  • Guest
Re:what did I do wrong?
« Reply #1 on: 19 Feb 2004, 20:02:46 »
 Didn't download it.. but I'll assume it's a wall  ;D

 

  in your geometry LOD select everything...

then go to

Structure>Topology>Find Components

and however many components there are will show up in the component list .

then go to:

Structure>Convexity>Component Convex Hull

and your collision works..

you should do the same for the Fire Geo to get it workin properly as well..



if selecting the Convex Hull option deforms your model, then you should make it simpler or just make a smaller selection.


:cheers:

gadolinite

  • Guest
Re:what did I do wrong?
« Reply #2 on: 19 Feb 2004, 23:51:49 »
The colission detection works, for everything but planes like the A-10 and SU-25.  Also, it is impossible to destroy it.  There is a jaypeg of the plane "inside the wall" inside the zip file.

Leone

  • Guest
Re:what did I do wrong?
« Reply #3 on: 20 Feb 2004, 17:36:04 »
For a start add these defines to your config:

Quote
//type side
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

//type access
#define ReadAndWrite 0 //! any modifications enabled
#define ReadAndCreate 1 //! only adding new class members is allowed
#define ReadOnly 2 //! no modifications enabled
#define ReadOnlyVerified 3 //! no modifications enabled, CRC test applied

//type destrType
#define DESTRUCTNO 0
#define DESTRUCTBUILDING 1
#define DESTRUCTENGINE 2
#define DESTRUCTTREE 3
#define DESTRUCTTENT 4
#define DESTRUCTMAN 5
#define DESTRUCTDEFAULT 6

And here is a sample of my wall config:

Quote
   class ds_walls: TargetGrenade
   {
      scope=2;
      cost=1;
      side=3;
      access=3;
      mapsize=7;
      destrType=3;
      armour=5;
   };
   class ds_wall1: ds_walls
   {
      model="\ds_obj\wall\ds_wall1.p3d";
      displayName="$STR_WALL1";//refers to a Stringtable.csv file
      icon="\OPGWC_markers\Wall.paa";
      vehicleClass="OPGWC Buildings";
   };

Now do a search here for "Named Properties"...they go in the GeoLOD. You'll need some stuff in there.

gadolinite

  • Guest
Re:what did I do wrong?
« Reply #4 on: 21 Feb 2004, 06:49:17 »
Quote
Now do a search here for "Named Properties"...they go in the GeoLOD. You'll need some stuff in there.


What Do You mean  ??? too vague.