- Home /
Question by
Digital-Phantom · Dec 22, 2014 at 11:40 AM ·
addforcez-axisx-axis
Change Direction of AddForce axis ? (Solved)
How would I change this code so the 'force' is on another axis?
e.AddForce(TeethSpawn01.forward * 50);
Currently its moving along the Z axis but I want to change it to the X axis.
???
Comment
Best Answer
Answer by Baste · Dec 22, 2014 at 11:54 AM
Replace forward with right.
O$$anonymous$$G... seriously, It was that easy ! ? Thought I was going to have to start learning vectors and all that stuff...lol Now I feel like a real noob !
Any, thanks, that sorted it
:)
Your answer
Follow this Question
Related Questions
I have a serious problem! 1 Answer
How to make a object follow another on only 2 axises? 1 Answer
Enemy Follow Disable Y Axis 1 Answer
How do I make an angle with the X axis, Y axis, and Z axis and not rotate AROUND the axis? 0 Answers
Unity Mecanim not applying Mixamo Animation Root motion on XZ 1 Answer