I’ve been trying to create a “spell” of sorts that when Q is pressed, a black hole spawns in the direction the player is looking at a certain distance. However when I use GetActorRotation for the Player Pawn and hook it up to the SpawnActorFromClass function, it remains in the same direction, no matter which way I look. Any solutions would be appreciated. Thanks!
It should not work the way it was. You need both magnitude and direction. Rather than scaling the directional vector, the X component of the actor’s location was being shifted about.