Advertisement
Guest User

Untitled

a guest
Sep 16th, 2024
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class CarMovement : MonoBehaviour
  2. {
  3. void Update()
  4. {
  5. Vector3 position;
  6. Quaternion rotation;
  7.  
  8. // Get the Wheel collider's world pose values and
  9. // use them to set the wheel model's position and rotation
  10. _wheelCollider.GetWorldPose(out position, out rotation);
  11. _wheelModel.transform.position = position;
  12. _wheelModel.transform.rotation = rotation;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement