I want to change HingeJoint’s z axis when click on screen but i dont know how to do it. I tried to do it from “GetComponent.axis.z = -1;” or “GetComponent.axis = Vector3.left” but both of them didnt work and in Unity’s scripting API says “Joint.axis” but i dont know how to use it.
Thanks for help.