Game Development Community

Mounting weapon on character

by Gerald Fishel · in Torque Game Engine · 03/04/2004 (10:32 am) · 4 replies

Hi all,

I am getting a handle on Torque, but I am still having a problem with one nagging issue related to characters, and weapons.

I am exporting some characters from milkshape. I am able to get them into the game, and the animations work fine, and the collision detection with the environment seems to work fine. The only problem is that the eye point appears to be at the feet. That is where the first person view is from, and that is where the weapon appears to be mounted. The weapon also doesnt appear to move up and down when I look up and down (maybe because of the lack of look animations?). The gun is just in between the feet, it turns left and right when the model does, and moves when the model does, but thats about it.

Is there supposed to be something defined in the model that determines the eyepoint and/or weapon mount point? The skeleton uses the standard biped (Bip01) naming convention, and appears to have all of the same bones that the demo models have.

Another question is, is it possible to export animations as DSQ from Milkshape with the milkshape exporter?

Thanks

#1
03/04/2004 (4:56 pm)
You must have dummys for mount0,mount1,eye,cam,unlink

The eye dummy sets the eyepoint
and for the mount look in your weapon script and look for this
eyeOffset = "0.0 0.0 0.0";
set the eyeOffset like above.
#2
03/11/2004 (6:00 am)
I still don't realllly understand how to make these
dummy stuff... I just move my models around in Milkshape...
go out and see where it is... Then tweak accordingly...
#3
03/11/2004 (6:12 am)
The dummy stuff are only plain joints.

Just create a joint, name it "Eye", "Cam", "Mount0" etc. and move the joint to the position you need it.
#4
03/12/2004 (4:14 am)
Ahhh, thanks. I had let this issue slide for a while, because I couldn't figure out how to create dummies in Milkshape... lol... thought I was just dense :p I could do it in 3DS Max, but I have several characters that are in Milkshape format that I cant get exported to Max correctly. (3D modelling is not my strong point, obviously :p)

Peace