I’m testing out a sidescroller/platformer type game and having an issue with the weapon attachment. The weapon is attached to the character’s weapon socket. The problem is that the weapon mesh is pointing downward. = I’ve tried using:
WeaponMesh->AttachTo(PawnMesh, AttachPoint, EAttachLocation::KeepRelativeOffset);
but it’s not working. I want to orient the weapon to the direction of player character.