Game Development Community

Adjusting Mounting points

by Matthew Jones · in Artist Corner · 07/07/2002 (10:31 am) · 5 replies

I went through a basic tutorial on setting up a weapons at Stefan Beffy Moises site. I did gewt the model in and now I finally got a script made to get it in as a weapon. My problem is the way it mounts the player. I know the default player models probably doesn't support a pistol but I figured the gun should at least be pointed in the right direction and semi-usable. Here is a screen shot of whats happening
Screenshot
I am running 3dmax for models
Do the mount points get adjusted using Max or do they do it in the script. Any help is appriciated.

Matt

#1
07/07/2002 (10:52 am)
Looks like the pivot point of the gun's bounds object is pointing wrong. TO adjust select the bounds object, go to "Heirarchy panel" (in max) select "Affect Pivot Only" then rotate the arrows so the Red is on the mesh's right side, green is front, and blue is up.
#2
07/07/2002 (12:42 pm)
No all the pivot points are correct. Next to the GUY is a gun that is just spawned. You can see that the gun correctly loads into the world. The problem just happens when you grab the gun.


I got it. I needed to set the pivot on the shape box I guess that did it. In fact I set the pivot on everything.
LOL
Thanks
#3
07/07/2002 (2:11 pm)
Alright I still need a hand here.
screenshot
I got the gun pointed the right way but for some reason no matter where I put the mounting point the player model doesn't seem to hold it right. As you can see.

Is this adjustment made in the script or in the model itself. Does the bounding box, shape box,or detail box have anything to do with it?
Thanks
Matt
#4
07/07/2002 (2:36 pm)
Check the dump file that was created when the shape was exported and see if the mountpoint was exported or if the exporter culled it out as an un-needed node. If it was culled, the pivot of the bounding box of the shape will be used as the mountpoint
#5
07/07/2002 (3:41 pm)
Yep that did it Thanks

Matt