Hi guys, I’ve been following one guide from the wiki. ( https://wiki.unrealengine.com/First_Person_Shooter_C%2B%2B_Tutorial ). This guide helps you to recreate the first person shooter c++ template from ue4. This far I understand everything I’ve done following the guide but a few things related to the input.
My problem is with the MoveForward function and the jump function. They’re here https://wiki.unrealengine.com/First_Person_Shooter_C%2B%2B_Tutorial#UFUNCTION.28.29_Macro . I’m not pasting the code directly because I’m on my phone sorry guys.
Well first the MoveForward function, it needs one argument but when you call it in the input section you don’t pass any value to it. Does it take the value of the axis and pass it to the function automatically? Also I don’t understand what pitch is, I understand what you do to it, if you are on the ground or falling it’s limited but what is it and why do we have to limit it? And the main problem with this function, I don’t understand the line that says FRotationMatrix… No idea what it does and what matrix is :/. My last question about this, could I change the speed of my character just multiplying “Value” ? Like value *= 2??
Now my problem with the jumping function https://wiki.unrealengine.com/First_Person_Shooter_C%2B%2B_Tutorial#ActionMappings .
I understand what it does, but how a variable makes yo jump? I’m assuming a function on acharacter or apawn base classes takes that variable as an argument and it makes my character jump but I don’t know if I’m right. Can anyone explain what is happening when this variable changes to true? And how could I tweak the values to make my character jump higher for example. Also if anyone can explain me how could I make my own jump function just for learning purposes?
So, this was really long, hope I didn’t make you bored and thank you for the help.