Jump to content
Benoit Katecpo

Thrust Pedal Animation

Recommended Posts

Hello everyone !

 

Today I got a problem :( I'm making a vehicle and I wan't to do the Accelerator pedal (when you accelerate with Z the pedal move) like in the Hatchback, I've searched some ways to do it, and some informations on other vehicles like Animation Sources ...

Now I know the Hatchback's animation for the Accelerator pedal is called "pedal_thrust" but... that's not what I want !

I wan't to know which source I got to put in my model.cfg, because on the Bohemia Wiki (https://community.bistudio.com/wiki/Model_Config), there is no Animation Source for that (just one, but for bicycle, doesn't work on car I've tested it), maybe it's a particular AnimationsSources, i've tested that : 

class pedal_thrust
			{
				type="rotation";
				source="pedals";
				selection="pedal_thrust";
				axis="pedal_thrust_axis";
				memory=1;
				minValue=0;
				maxValue=1;
				angle0="0";
				angle1="rad 35";
			};

So the animation with the pedals works, but the source is wrong (so the pedals don't move in-game) :( If someone knows what source I have to put in the model.cfg, I'll be glad to know it :D

 

Regards,

Benoit Katecpo.

Share this post


Link to post
Share on other sites

The only one I can think of from that list that would fit would be 'speed'. i.e. the faster you're going the more depressed the pedal becomes. I'm not sure if this is how the Hatchback does it, it may use a scripted 'User' source.

Share this post


Link to post
Share on other sites


            class Pedal_Acceleration

            {

                animPeriod=1;

                type="rotation";

                source="Throttle";

                selection="pedalR";

                axis="pedalR_axis";

                memory=0;

                minValue=0.0;

                maxValue=1;

                angle0=0;

                angle1=rad -7;

            };

            class Pedal_Brake: Pedal_Acceleration

            {

                source="brake";

                selection="pedalL";

                axis="pedalL_axis";

                angle0=0;

                angle1=rad -7;

            };

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×