Download

Change "front" of projectile with directional movement

I am trying to make a simple projectile driven (from a tutorial)


	
if (ProjectileMovement)
	{
		ProjectileMovement->Velocity = ShootDirection * ProjectileMovement->InitialSpeed;
	}


ProjectileMovement is



	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Movement)
	UProjectileMovementComponent* ProjectileMovement;


and is initialized with



	ProjectileMovement = ObjectInitializer.CreateDefaultSubobject<UProjectileMovementComponent>(this, TEXT("ProjectileComp"));
	ProjectileMovement->InitialSpeed = 3000.f;
	ProjectileMovement->MaxSpeed = 3000.f;
	ProjectileMovement->bRotationFollowsVelocity = true;
	ProjectileMovement->bShouldBounce = true;
	ProjectileMovement->Bounciness = 0.3f;
	ProjectileMovement->ProjectileGravityScale = 0;


Unfortunately the projectile’s mesh (which is a starter content “Narrow Capsule”) has the pivot situated such that the “front” (red arrow) is a long end of the capsule, so it flies forwards while standing straight up, instead of pointed forwards.
Seen here:

9ed35f79d95a7a42b26aa9b681a44ef8a5786ea5.jpeg

How can I adjust the front of the capsule so that it will fly forwards instead of sideways?