animations only paying after trigger released
by Donald Teal · in Torque 3D Professional · 03/14/2010 (2:44 pm) · 48 replies
I have added some animations to go with the flight code for my player model. I am using T3D1.1a.
in default.bind.cs I have
model goes into flight position but doesn't play the animation untill after the trigger is released.
all animations play fine in model editor.
the flight mechanics work fine and are designed to be enabled only when trigger is pressed. when trigger is
released it goes into fall state.
EDIT: ok it seems that the animation is trying to play but keeps resetting while the 'g' key is down.
what would be a better way to do this so the animation can cycle as long as the key is pressed and not
keep resetting?
in default.bind.cs I have
function glideTrigger(%val)
{
$mvTriggerCount5++;
}
moveMap.bind( keyboard, g, glideTrigger );model goes into flight position but doesn't play the animation untill after the trigger is released.
all animations play fine in model editor.
the flight mechanics work fine and are designed to be enabled only when trigger is pressed. when trigger is
released it goes into fall state.
EDIT: ok it seems that the animation is trying to play but keeps resetting while the 'g' key is down.
what would be a better way to do this so the animation can cycle as long as the key is pressed and not
keep resetting?
About the author
#42
03/27/2010 (10:39 am)
honestly I would love to try and fix this one so if it keeps coming up I have a fix until they can get the fix into T3D. I am not sure how to trace this one down and fix it. I am still learning the ins and outs of the torque script and c++ and how to debug. I am trying to use this as a learning experience as well as getting things working.
#43
03/29/2010 (5:53 am)
ok got clean build into T3D1.1Beta. I am no longer getting the vector error from post #36. waiting for new animations to see if they will play. will keep you informed.
#44
There was a very bad old bug that Chris solved.
This bug leads to out of bounds as I remember - this is fixed for 1.1 beta.
03/29/2010 (7:39 am)
Do you use scale animations ?There was a very bad old bug that Chris solved.
This bug leads to out of bounds as I remember - this is fixed for 1.1 beta.
#45
03/29/2010 (11:17 am)
model is scaled in datablock but there was an issue with the animations not being the same scale as the base model. this is being fixed and then I will be able to test again.
#46
EDIT: OK got the animations playing and the swimming works again, WOO HOO!! now just have to figure out why the animations are not releasing.
when gliding and I press left it goes into the bank left animation but when I release left it doesn't go back to the idle glide. it stays in the bank left.
03/30/2010 (6:51 pm)
ok been making some changes to the code again. found out it was not working completely properly. so trying to fix it again. it was interfering with swimming.EDIT: OK got the animations playing and the swimming works again, WOO HOO!! now just have to figure out why the animations are not releasing.
when gliding and I press left it goes into the bank left animation but when I release left it doesn't go back to the idle glide. it stays in the bank left.
#47
Just wanted to say thanks for all the help.
Now on to other things
03/31/2010 (2:08 pm)
OK got it all working!!Just wanted to say thanks for all the help.
Now on to other things
Torque Owner Ivan Mandzhukov
Liman3D
I know that many things were changed for several months,many bugs were solved,also many new bugs appeared as well.
Ok, go to 1.1 beta and see what happens.If T3D crashes, then you should report this as a bug. Also you can try to fix this one.