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

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

About the author
Ace Owner of NoESCape.sytes.net starting from the beginning on 3d torque
#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.
#4
09/29/2001 (6:01 pm)
altho things will get even better once the new player models get done :)
Torque Owner Karsten "Clocks" Viese
I think this will do the trick (90% sure).
// Clocks out