![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
11-21-11, 06:06 PM
|
#11 |
|
Black Magic
![]() |
ok, after some thought on this here's what I'm going to do:
Bones reposition like they should when you change position and rotation which is good. Meshes on the other hand do not. Even though meshes are supposedly 'bound' to a bone they are, in fact, not in SH5. Thus if we treat each mesh as a new 'bone' then it will help mitigate the pain and frustration. Since they will be classified as a bone then they will inherit position information (from the GR2Coords class). I'll initialize their position information to 0 (no rotations, no position - (0,0,0)) and set their transform to the Identity transform. This will work because they are already pre-positioned to where they need to be. Now when the user asks to reposition the item or change it's rotation then these variables will obviously not be 0 anymore. I'll check to see if they are 0 or not and if not then I'll update the mesh's verticies to reflect the change the user wanted. Now to take what I just described and apply it to the code The fact that this has to be done in the first place is utterly absurd. There was no reason to use the Granny system...the DAT file system would've done everything they needed. |
|
|
|
|
