You’re gonna need to post more of your code so that we can understand because if you don’t have any compilation error then this line seems perfectly fine.
“Doesn’t work” is not an explanation. Say what does happen, and how that differs from what you wanted to have happen.
The code you posted is calculating a point that is 10 units away from HandleOutPosition in the direction opposite of transform.forward. Presumably either -transform.forward wasn’t the direction you wanted or there’s something wrong with how you’re using that point after you’ve calculated it.
positionercube is a gameobject and is NOT parented to any other gameobject.
When I press m the cube moves DOWN by 5 units & the object is not rotated on any axis. Very strange.
No it’s not working because the handleout position after should be 10 units back from handle out pos before but its’ not moved.
EDIT : Just realised the Y position has moved up 10 units so it’s moved the position but not in the intended direction. Just like with the little experiment I done.
I might have to go back to my old crappy method of placing a empty gameobject at the given position then using transform.translate to move it then getting the new position of the gameobject - must be a easier way.