Game Development Community

How would i get my sword to change it's vertical position?

by Ace · in Torque Game Engine · 09/28/2001 (9:21 am) · 4 replies

i can move it forward ,backwards,and side to side changeing the "offset" in this script:

datablock ShapeBaseImageData(RifleImage)
{
className = WeaponImage;
shapeFile = "weapons/shapes/weapon_thumper.dts";
item = Rifle;
ammo = RifleAmmo;
offset = ".1 1 -.1 13"; //0 0 0
emap = true;

but what about vertical? what would i search for?, or (if you know) what would i add to this?

Or isthe positioning of models better left to the modeler?

BTW the guy that modeled that sword used max 4 :)

Thanks
65.5.70.198/sword2.jpg

#1
09/28/2001 (10:10 am)
Try to rotate the pivot point of the "bounds" object in the model file and then export it again.

I think this will do the trick (90% sure).

// Clocks out
#2
09/29/2001 (7:36 am)
You can also specify a rotation as part of the image datablock:
datablock ShapeBaseImageData(RifleImage) 
{ 
   className = WeaponImage; 
   shapeFile = "weapons/shapes/weapon_thumper.dts"; 
   item = Rifle; 
   ammo = RifleAmmo; 
   offset = ".1 1 -.1 13"; //0 0 0 
   rotation = "1 0 0 90";
   emap = true; 
};
Not sure those are the right values, but you can play with it :) The rotations are axis angle, the first three values are the axis, the last the amount to rotate by. I can never remember if the amount is in degrees or radians though.
#3
09/29/2001 (5:59 pm)
hey, thanks for the info, much better,

65.5.70.198/sword3.png
#4
09/29/2001 (6:01 pm)
altho things will get even better once the new player models get done :)