rigidbody movement unity code

#region "Variables"
    public Rigidbody Rigid;
    public float MouseSensitivity;
    public float MoveSpeed;
    public float JumpForce;
    #endregion
   
    void Update ()
    {
        Rigid.MoveRotation(Rigid.rotation * Quaternion.Euler(new Vector3(0, Input.GetAxis("Mouse X") * MouseSensitivity, 0)));
        Rigid.MovePosition(transform.position + (transform.forward * Input.GetAxis("Vertical") * MoveSpeed) + (transform.right * Input.GetAxis("Horizontal") * MoveSpeed));
        if (Input.GetKeyDown("space"))
            Rigid.AddForce(transform.up * JumpForce);
    }

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
3d movement script in unity using rigidbody how to make player rigidbody movement in unity unity 2.5d rigidbody movement 3d movement rigidbody rigidbody movement unity 3d rigidbody 3d movement unity 3d rigidbody movement unity use rigidbody for player movement 3d movement in unity using rigidbody unity3d movement rigidbody rigidbody movement in ar unity unity 3d movement rigidbody Player Movement with Rigidbody in Unity unity 3d movement with rigidbody unity 3d player movement rigidbody rigid body movement unity 3d unity player movement script 3d rigidbody 3d rigidbody movement unity 3d rigidbody movement unity rigidbody movement code movement script rigid body unity rigidbody physics movement unity rigidbody character movement unity3d rigidbody player movement unity unity 3d character movement with rigidbody rigid body movement unity rigidbody player movement script unity movement in unity rigidbody unity rigidbody 3d movement rigidbody movement 3d script unity move rigidbody2d unity rigidbody2d unity how to do rigidbody movement in unity rigidbody movement script unity rigid body movement script unity unity rigidbody 2d movement how to make character movement in unity with rigidbody unity movement rigidbody unity player movement rigidbody unity movement script c# rigidbody Basic C# Rigidbody movement script movement rigidbody unity movement script for unity 3d rigidbody basic rigidbody movement unity rigidbody player movement rigidbody movement c# unity unity movement script 3d rigidbody unity rigidbody movement script movement script unity rigidbody movement unity rigidbody unity movement with rigidbody unity c# rigidbody movement rigidbody move rigidbody unity movement 3d player movement rigidbody Unity basic rigidbody player movement unity rigidbody move move rigidbody unity how to make a rigidbody player movement script in unity player movement script unity 3d rigidbody unity move player with rigidbody unity ways to move a body movement with rigidbody unity unity rigidbody velocity movement rigidbody.Move move a rb unity unity move a rigidbody rigidbody movemnt unity move gameopbeje up using rb unity c# how to move with riged body rigidbody movement unity unity movement using rb.velocity rigidbody move functions how to make player movement unity 3d rigidbody disable rigidbody unity c# add rotation to rigidbody2d unity how to make rigidbody character controller snappy unity charahter.move but with rigidbody rigidbody move unity c# unity rigidbody movement problem when different collider unity character movement with rigidbody unity rigidbody movement unity rigidbody collision detection unity smooth rigidbody player movement using Rigidbody 2d unity examples unity rigidbody movement 3d rigidbody movement unity code
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source