Great work on this. I followed this and it worked. :)
@jamesclyne64594 ай бұрын
Great! Looking forward to the next videos 👌
@Athomield3D4 ай бұрын
New video up now !
@ondrejhajek26244 ай бұрын
Hi, do you think you could explain i bit more how you calculated the move target position? You totally lost me there. I don't understand what the line trace does, nor why you needed to do that multiplication. Thank you!
@Athomield3D4 ай бұрын
You can think of the line trace as a toy laser. Here we point our toy laser from the mouse cursor position onto the world. The first thing our laser touches is going to leave a red dot on it. We want our player to go to that red dot. Now we want our toy laser to be a very strong one; going for a very far distance (in case the objects in the world are very far) so I multiply the direction by 10000 (centimetres in UE5 measurement units so 100 meters) in order to allow this laser to go for 100 meters and look for objects that are at a very large distance. 10000 is just a big safety number and can be bigger although not necessary in this case because 10000 is enough.
@ondrejhajek26244 ай бұрын
@@Athomield3D now it makes complete sense, thank you