How to make the rotors really rotate...really

Author Topic: How to make the rotors really rotate...really  (Read 3484 times)

Ok, the title was like that just as a joke but my question is serious.

If I model a helicopter, animate it so the rotors spin and make that animation cyclictic, would the blades spin automatically when I spawn the vehicle or do I need some custom code in the vehicle file for them to work?

If anyone could give the code, (should only be a few lines I suppose), I would be most appreciative.

Thanks,

Chris

If you name the animation "ambient" it should work just how you want it. Should require no additional code.

Which exporter should I use?

Torque DTS Plus

or

Torque Game Engine DTS   ?


EDIT: I tried the top one (the plus exporter) and it didn't work. The vehicle spawned but the animation didn't play. Help please. :(
« Last Edit: July 11, 2007, 01:37:19 PM by Reactor Worker »

I'm not sure, I think the default one that came with milkshape,(assuming that's what you use), should work fine. But I think either one would work fine.

Ok, neither of them worked. :(

Any other ideas? Have you done this your self?

Assuming you are using milkshape, try making a new material, with this as it's name:

seq: ambient=1-30, fps=30, cyclic

(Change the values according to your animation)

Then Export to Torque Game Engine DTS, and select export animations.

I've done this many times, but only once in milkshape, i totally forgot about the new material hack/getaround export thing my bad.

Try adding this to the CS file:

function [Helicopter Vehicle]::onAdd(%this,%obj)
{
   %obj.playThread(0,"ambient");
}

Quote
Try adding this to the CS file:

function [Helicopter Vehicle]::onAdd(%this,%obj)
{
   %obj.playThread(0,"ambient");
}

Do i need to change [helicopter vehicle] to something else or just leave it?

Ok, I have tried ways (materials thing Res suggested and the code by space guy) and neither work for me.

Can anyone who has actualy made a working, animated vehicle that has a feature that constantly rotates please help?

Maybe look at my model and see whats wrong with it?

Thanks.

PS. Who made the stuntplane? Doesn't that have a rotating propellor?

kaje made the stunt plane

Thanks, I have already spoken to him. Things are under control...for now >:)

wait...when did you get retail?

about a week ago.

BLID 1080