I am using a simple script to change direction of a rigidbody. How do I check to see what angle this rigidbody is facing in relation to North, and then addforce to the rigidbody to make it move in that direction.
Uhm, if for North you mean “forward”, you can check the rigidbody’s degrees angle via:
transform.rotation.eulerAngles.y
To just make it move forward in the direction its facing, you can simply use this:
rigidbody.AddForce( transform.TransformDirection( Vector3.forward * speed ) );