I have a function which should rotate the player where my cursor location is, but for some reason it is rotating 90 degrees to the left making its side face the cursor. Tried rotating the models itself, changing places of vectors in the equation. Provided 2 screenshots for the Tick function, and the Rotate function. Please help!
It likely is an issue with the rotation of the character in the blueprint as x is forward and z is up I believe my missiles had the same issue you can rotate them in the BP to match the expected or you can -90 from the function the blueprint fix would be more correct in the case since if you fix that you don’t need to change all future codes to rotate the extra 90
Firstly thanks for the reply, I tried both subtracting and adding the 90 degrees to the exposed function in the blueprint, but nothing constructive happened. There is still something overwriting its rotation constantly making it face the wrong way regardless…
For anyone having the same problem as me in the future, I opted to just add 90 degrees to the function in the code and not blueprint. Still confused why is the function behaving so strangely but I guess i fixed it the issue the not pretty way.
this is because the code would undo the rotation in blueprints, it works in the code because you are affecting the output and the result rather than in blueprints where it only affects the result which then gets overridden the next frame. This will work for this but it will need to be done in every rotation function you do with that character as a heads up.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.