Jump to content

Recommended Posts

Posted

Place a dummy at the end of the barrel, name it (and add the same in user defined properties. I don't know if that is necessary, I just did it) and then you also have to add the name into the lua (check existing models and mods how they've done it)

 

Posted (edited)
4 hours ago, love0rdie said:

Why my connectors is working like this do u have any idea? i named it exactly whats in .LUA 

 

1. try rotating the connectors (they have more than x,y,z coord info - there is also rotation and scale info in that connector).

2. have you rigged it for animation yet? if so, there could also be problems with your animation

3. the lua code for connectors also allows you to move and rotate objects in relation to the connector. is your lua correct?

Edited by prccowboy
Posted

Please can u explain with some example ....

i add the connectors for Guns to release point of shells from cannon....(connectors means POINT in 3ds max right? i am not added dummies i was added it but after that removed it )

i rigged my tank by arg based rotation etc ...

i m not rotating connectors i just add them and name them exact as .lua and link them with the concern part like Turret chase

Without this point connectors its rotating good 

so there is problem between connectors and .lua i cant figured it out which is one

Help me .Thanks

Posted (edited)
1 hour ago, love0rdie said:

Please can u explain with some example ....

i m not rotating connectors i just add them and name them exact as .lua and link them with the concern part like Turret chase

 

1. look at your model in modelviewer, the connectors have direction (rotation). In the connector box you will see a purple line extending from center and facing a direction (see example photo). With your model, which way are they pointed when the animation is at rest (args = 0)?

Also, see @razo+r comment about using dummies (I don't know 3DS, in Blender you use empties and export as connector)

t-55 connectors.jpg

Edited by prccowboy
Posted

Here the image is my connectors via model viewer 

have to type something in user defined in object properties for connectors? like -NO_CONNECTOR = 0

and i use this thread as reference -

they using point instead of dummies 

connectors.jpg

Posted

the main gun connectors look ok to me but the others are rotated incorrectly. next thing to check is your animation and the lua code:

Your animation for horizontal traverse should be -1 (facing fully to rear) to 1 (rotating counter clockwise until it faces to rear again) and vertical elevation should be -1 (fully facing down) to 1 (facing fully up). 

lua code angles: reference_angle_Y, reference_angle_Z (resting position), and GT.WS[ws].angles which control rotation range

I suggest looking at a working example and see what you have done differently.

  • 2 years later...
Posted

Have you solved this problem? I'm also experiencing it; the muzzle keeps tilting upwards and can't function properly.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...