Ragdoll Movement Script, Help!
So i was trying to make a 2D gang beasts like game with stick figures and stuff and this is what i got,
using UnityEngine; public class PlayerMove : MonoBehaviour { public Rigidbody2D rb; public float speed; public Vector2 moveVelocity; void Start() { rb = GetComponent<Rigidbody2D>(); } void Update() { Vector2 moveInput = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical")); moveVelocity = moveInput.normalized * speed; } private void FixedUpdate() { rb.MovePosition(rb.position + moveVelocity * Time.fixedDeltaTime);a } }
and im not sure whats wrong, but basicly it wont move at ALL!
Your answer
Follow this Question
Related Questions
How Do I stop AI Following player on the Y-axis? 0 Answers
Unity 2D 5.2.2 How can I aim with keys towards an object? 2 Answers
2d platformer physics 0 Answers
Unity 5.2.2 2D c# If lever hit then door open. 0 Answers
How do i add a boost,Adding a boost 0 Answers