In this video, Kaan uses GetActorLocation() + GetActorRotation().Vector() * 100.0f; to calculate a position 100 centimeters away in the direction the player is facing.

Is GetActorForwardVector() interchangable with GetActorRotation().Vector()?

1 Like

No, they aren’t quite the same. The forward vector is always forward and is a unit vector where the actor rotation will give you a vector containing yaw, pitch and roll.

Given the player itself doesn’t pitch or yaw but the sprint arm does, it may not match.

Actually GetActorRotation().Vector() * 100.f doesn’t work properly, it doesn’t matter what actor rotation or the multiplier (in this case 100.f) is, the object always spawn at the same spot. However you can properly manipulate spawn location with front vector

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms