Game Development Community

How you guys mount the weapon in a correct position?

by ysun · in Torque Game Engine · 09/30/2006 (9:30 am) · 5 replies

Hello,

How you guys mount the weapon in a correct position? Do you try a lot of times? or are there any tutorials?

Thank you.

#1
09/30/2006 (9:55 am)
I use an eyeOffset. This allows you to position the weapon pretty much anywhere you like. In some cases, where needed, I also use eyeRotation for positioning of certain weapons. I scripted a simple editor that allows me to change these values in game.
#2
09/30/2006 (10:00 am)
I scale the weapon to the player avatar mesh and align it within the player's Scene in the appropriate location in the appropriate pose. Duplicate[same location/orientation] or cut the mountO node[or your intended node], rename it to mountPoint. Delete the player 'data' in the Scene. There is my base weapon Scene; now I adjust as desired; adding nodes moving the objects, etc...I guess you could always script the offsets in thru trial/error.
#3
10/31/2006 (8:22 am)
Thank you, m8s. It looks not an easy thing to me.

To Tim, Does the eyeOffset some function in 3D software or it's the script written by you?

To Rex, Do you do it inside game or in 3D software?
#4
10/31/2006 (8:56 am)
The mount point & offset for 3rd person, and eye offset for first person rendering is locate in the weapon cs file look at the crossbow. When you create your weapon in the 3d software keep it at the center 0 0 0 and you may have to tweak it a little in the script but not much.
#5
10/31/2006 (4:24 pm)
Ah~ Thanks, Michael.