Hello,
I’ve the problem that I want to move my Cube (rigidbody), turn it and rotate it.
For the movement I’ve used MovePosition for my spinning AddTorque.
Now I’ve always the problem with the MoveRotation… I’ve really ugly alternatives or one
really ugly Alternative (but it works…):
cube.transform.Rotate(Vector3.up * amount * Time.deltaTime, Space.World);
which is used like this: “transform.rotation, however the rotation will only be applied to the transform at the end of the physics step” (Unity - Scripting API: Rigidbody.rotation)
I’ve the problem that I can only apply the rotation once. If the cube is on the left side it won’t filp again because
the moveRotation uses a different axis.
Quaternion deltraRot = Quaternion.Euler(Vector3.up * 100 * Time.deltaTime);
cube.rigidbody.MoveRotation(cube.rigidbody.rotation * deltraRot);
I hope you can help me guys ![]()
Greeting
Leo