CodePudding user response:
You don't write code control, originally has been levels, rigid body can lock the x, z axis does not rotateCodePudding user response:
Void the Update () {The transform. The up=Vetctor3. Up;
}
CodePudding user response:
Void the Update (){
The transform. The rotation=Quaternion. Euler (Vector3. Zero);
}
Can have a try to ensure that the object x axis and z axis to 0 can make its always vertical,