Hi there, just a short problem overview:
(I’m not sure, it is right forum, this question is related to both C++ and Content Creation branches)
- UE 4.5.1
- ShoterGame demo
- WeapGun blueprint
- Notice two types of weapons : 1st person, 3rd person
- 3rd person is rotated by X -90.f
6. 1st person isn’t rotated, I can’t even do it, there is no possibility to rotate the root component - Goto void AShooterCharacter::SpawnDefaultInventory()
- Start playing
- After calling this line :
AShooterWeapon* NewWeapon = GetWorld()->SpawnActor<AShooterWeapon>(DefaultInventoryClasses*, SpawnInfo);
(WeapGun_C is the class specified at the first argument)
It appears that NewWeapon is rotated by X -90.f
How come?
I tripple checked, nothing rotates the 1st person weapon. I traced the code and noticed that the rotation is loaded from WeapGun blueprint asset file and stored in Default__WeapGun_C class. This class is used as a template for spawned weapons.
But how the user managed to rotate the 1st person weapon?? As I said, is it impossible to change rotation of root components