Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Help with RB Controller

Discussion in 'Physics' started by FirstTimeCreator, May 1, 2018.

  1. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    768
  2. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    768

    So i was able to make it work by using add torque to rotate the player however the rotation is slugish compared to transform.rotate.

    Is there a way to allow the rigidbody to rotate on X,Z while only controlling the rotation on Y.

    // transform.Rotate(transform.rotation.z, rotation, transform.rotation.z);

    I need the RB to be able to rotate on x,z while only modifying y.

    EDIT:
    nevermind have it working.