I am trying to convert my linetrace blueprint into c++ but running into some trouble just getting my FVectors set up.

My Current blueprint looks like the following:

However, I am having trouble getting the location and forward vectors of the CapsuleComponent of the Character and then doing the math.

Could someone guide me in the right direction to start converting this blueprint to c++?