Re: Directly manipulate col-settings in w3d? [message #326792 is a reply to message #326755] |
Sat, 19 April 2008 05:32 |
|
rrutk
Messages: 617 Registered: June 2007
Karma:
|
Colonel |
|
|
Saberhawk wrote on Fri, 18 April 2008 23:01 | Import it and edit the settings and then export it again is one option.
The other option, if you are good with a hex editor, is to look for w3d_file.h and parse out the file, editing the "Flags" field of the CHUNK_MESH header.
|
Tried the import thing for hours, doesnt work properly.
within this model only the collision-setting for the mainbody must be set the "projectile", then it is fixed.
And yes, I've used a hexeditor a few times.
BUT NEED TO KNOW THE CORRECT PLACE...
The flags are:
define W3D_MESH_FLAG_COLLISION_TYPE_MASK 0x00000FF0 // mask for the collision type bits
#define W3D_MESH_FLAG_COLLISION_TYPE_SHIFT 4 // shifting to get to the collision type bits
#define W3D_MESH_FLAG_COLLISION_TYPE_PHYSICAL 0x00000010 // physical collisions
#define W3D_MESH_FLAG_COLLISION_TYPE_PROJECTILE 0x00000020 // projectiles (rays) collide with this
#define W3D_MESH_FLAG_COLLISION_TYPE_VIS 0x00000040 // vis rays collide with this mesh
#define W3D_MESH_FLAG_COLLISION_TYPE_CAMERA 0x00000080 // camera rays/boxes collide with this mesh
#define W3D_MESH_FLAG_COLLISION_TYPE_VEHICLE 0x00000100 // vehicles collide with this mesh (and with physical collision meshes)
[Updated on: Sat, 19 April 2008 05:53] Report message to a moderator
|
|
|