About 13,700 results
Open links in new tab
  1. How to make a character move with WASD in unity [closed]

    May 26, 2020 · So, I have been trying for so long to make a WASD movement script, and I can't. It has come to the point that I am even getting the code off the official Unity site. And here is the code: …

  2. unity - Move rigidbody using WASD keys but rotate it based on camera ...

    Apr 23, 2019 · Then i want to move my rigidbody based on keyboard input (wasd) and rotate it using the mouse movement. Until now, i used the following code for moving my rigidbody:

  3. Unity - move with WASD in the way the camera is facing

    May 25, 2020 · The script is on the camera, and camera object is a child to the player object. Now I want to move the player object in the direction the camera is facing, how do I do this?

  4. Make 2d sprite move in unity - Game Development Stack Exchange

    Feb 4, 2021 · At the moment I have a movement script which moves my player in Bothe directions but it only faces 1 way - using System.Collections; using System.Collections.Generic; using UnityEngine; …

  5. How to use Input.GetAxis("Mouse X/Y") to rotate the camera?

    Jul 28, 2015 · I want to make a first person camera that rotates with the mouse. I looked at the Input.GetAxis Scripting API page and found a sample code, which I have included at the bottom of …

  6. unity - Unity3d Move player with UI buttons - Game Development …

    Sep 13, 2018 · Explore related questions unity movement rigidbody See similar questions with these tags.

  7. unity - How to move a Rigidbody2D to exactly match the movements …

    Feb 15, 2023 · I'm recording the velocity of a Rigidbody2D using Animation Curves and I need to reproduce the same "movement" on an instantiated prefab (we really need "stuck like glue" …

  8. unity - How to Make GameObject move in Circular Motion - Game ...

    Jan 20, 2021 · I've been trying to work an enemy that moves in a circular motion for my RPG game, but for some reason, whenever I press play the GameObject instantly goes hundreds of units in the X …

  9. Unity 3d auto-move player forward script

    Trying to write a basic script to attach to the player on Unity 3D, I want them to move forward automatically. I'm guessing that will be part of the Update function and using transform, but that's ...

  10. unity - How to make the camera follow the mouse in first or third ...

    May 3, 2018 · The web is littered with beginner Unity tutorials including camera controls. I'd strongly recommend working through one or two of those, or inspecting the standard components provided by …