# Pawn is rotating too fast (No Angular damping)

**URL:** <https://forums.unrealengine.com/t/pawn-is-rotating-too-fast-no-angular-damping/57759>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [March 9, 2016, 6:43pm UTC](https://forums.unrealengine.com/t/pawn-is-rotating-too-fast-no-angular-damping/57759 "2016-03-09T18:43:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moynzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moynzy](https://forums.unrealengine.com/u/Moynzy)\
**Post date:** [March 9, 2016, 6:43pm UTC](https://forums.unrealengine.com/t/pawn-is-rotating-too-fast-no-angular-damping/57759/1 "2016-03-09T18:43:08Z")

</div>

```auto

void AHoverPawn::TurnActor(float AxisValue)
{

	FVector Cv = Car->GetPhysicsLinearVelocity();
	FVector Fv = Car->GetForwardVector();
	float f = FVector::DotProduct(Cv, Fv);
	if (f > 0)
	{

		Car->AddTorque(FVector(0, 0, 1000000 * AxisValue));
		FVector Rv = Car->GetRightVector();
		FVector V = Car->GetComponentVelocity();
		float dotP = FVector::DotProduct(Rv, V);

		float invertValue = dotP * -1;
		float next = invertValue * 4000;
		FVector getRv = Car->GetRightVector();

		Car->AddForce(getRv * next);

		Car->AddForce(getRv * next);
	}
	else
	{

		Car->AddTorque(FVector(0, 0, 900000 * AxisValue *-1));
		FVector Rv = Car->GetRightVector();
		FVector V = Car->GetComponentVelocity();
		float dotP = FVector::DotProduct(Rv, V);

		float invertValue = dotP * -1;
		float next = invertValue * 4000;
		FVector getRv = Car->GetRightVector();

		Car->AddForce(getRv * next);

	}
}

```

this rotates my pawn, but the problem is it rotates really fast because of the input, and then goes out of control. I got the Pawns angular velocity and used the FVector::Size() method which returns a float, The angular rotation velocity was going up when ever I held down D. In order to bring it down to 0, I would have to hold down A as it spins out of control.

How can I stop the Pawn from rotating out of control?

It is a

```auto

	Car = CreateDefaultSubobject<UBoxComponent>(TEXT("CarMesh"));

```

Physics box component with physics enabled.

The pawn is hard to control, since it rotates too fast.

---

<div class="post-metadata">

**Author:** ![Moynzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moynzy](https://forums.unrealengine.com/u/Moynzy)\
**Post date:** [March 10, 2016, 6:02pm UTC](https://forums.unrealengine.com/t/pawn-is-rotating-too-fast-no-angular-damping/57759/2 "2016-03-10T18:02:45Z")

</div>

Bump, pelase hellp

---

<div class="post-metadata">

**Author:** ![BoredEngineer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BoredEngineer](https://forums.unrealengine.com/u/BoredEngineer)\
**Post date:** [March 10, 2016, 6:34pm UTC](https://forums.unrealengine.com/t/pawn-is-rotating-too-fast-no-angular-damping/57759/3 "2016-03-10T18:34:40Z")

</div>

You are adding torque to a car where you just multiply AxisValue by constant. You constant is responsible for amplitude of torque. Make it smaller.

---

<div class="post-metadata">

**Author:** ![Moynzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moynzy](https://forums.unrealengine.com/u/Moynzy)\
**Post date:** [March 11, 2016, 12:22pm UTC](https://forums.unrealengine.com/t/pawn-is-rotating-too-fast-no-angular-damping/57759/4 "2016-03-11T12:22:27Z")

</div>

I need a lot of force to move it though
