# WheeledVehicleMovementComponent4W can't set ClutchStrength

**URL:** <https://forums.unrealengine.com/t/wheeledvehiclemovementcomponent4w-cant-set-clutchstrength/445444>\
**Category:** World Creation\
**Tags:** vehicle, vehiclemovementcompo, unreal-engine, Physics, question, CPP\
**Created:** [March 17, 2019, 3:53am UTC](https://forums.unrealengine.com/t/wheeledvehiclemovementcomponent4w-cant-set-clutchstrength/445444 "2019-03-17T03:53:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchaconcr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mchaconcr](https://forums.unrealengine.com/u/mchaconcr)\
**Post date:** [March 17, 2019, 3:53am UTC](https://forums.unrealengine.com/t/wheeledvehiclemovementcomponent4w-cant-set-clutchstrength/445444/1 "2019-03-17T03:53:54Z")

</div>

It seems like clutchStrength works fine on blueprints, I’m trying to modify this through on runtime using an axis (G29 clutch) value.  
Initially I planned to extend the Vehicle actor class and set the clutch… but no… is not that easy… I have to extend the Vehicle Movement component… and use that component on my Vehicle class… Well I have that solved… then I thought it was going to work by changing the `TransmissionSetup.ClutchStrength = [float whatever I want];`. Well… no…  
TransmissionSetup seems to be there just to "feed"the following:

```
/** update simulation data: transmission */
	void UpdateTransmissionSetup(const FVehicleTransmissionData& NewGearSetup);

```

Easy! I tried to think… but no… not that easy:

```
TransmissionSetup.ClutchStrength = force;
UpdateTransmissionSetup(TransmissionSetup);

```

Seems to work… no errors… it runs fine… but no clutch is updated… checking up WheeledVehicleMovementComponent4W.cpp I found this:

```
void UWheeledVehicleMovementComponent4W::UpdateTransmissionSetup(const FVehicleTransmissionData& NewTransmissionSetup)
{
#if WITH_PHYSX
	if (PVehicleDrive)
	{
		PxVehicleGearsData GearData;
		GetVehicleGearSetup(NewTransmissionSetup, GearData);

		PxVehicleAutoBoxData AutoBoxData;
		GetVehicleAutoBoxSetup(NewTransmissionSetup, AutoBoxData);

		PxVehicleDrive4W* PVehicleDrive4W = (PxVehicleDrive4W*)PVehicleDrive;
		PVehicleDrive4W->mDriveSimData.setGearsData(GearData);
		PVehicleDrive4W->mDriveSimData.setAutoBoxData(AutoBoxData);
	}
#endif // WITH_PHYSX
}

```

Where’s the clutch data being passed to the Physx vehicle???  
And this is where I get completelly stuck!!!  
Any help is appreciated!!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b34b0fd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b34b0fd1](https://forums.unrealengine.com/u/anonymous_user_3b34b0fd1)\
**Post date:** [May 14, 2020, 11:20pm UTC](https://forums.unrealengine.com/t/wheeledvehiclemovementcomponent4w-cant-set-clutchstrength/445444/2 "2020-05-14T23:20:28Z")

</div>

Same problem, i guess you pretty much gave up on this /found a solution or just made the whole thing urself.  
But at the beginning you said setting the clutchstrength works fine on blueprints?  
The vehicle component has a float called like that which is not blueprint visible, no set not even get. Maybe they changed it? using 4.24
