*SOLVED; It was my actual animations, I moved the object as a whole, and not the armature. Hey guys, I've moved from character joints to making basic blender models with bones, and the animations are alot smoother, however, when I change animations and try to addforce, the character no longer moves, is it my script? Code (CSharp): using System.Collections; public class StickMovement : MonoBehaviour { public float forwardSpeed = 10; public float backwardSpeed = 8; public float jumpHeight = 10; public float rotateSpeed = 10; Animator anim; void Start () { anim = GetComponent<Animator>(); } void Update () { Movement(); } void Movement(){ float hori = Input.GetAxisRaw ("Horizontal"); float verti = Input.GetAxisRaw ("Vertical"); anim.SetFloat ("Speed", verti); //Directional Movement if(hori < 0) { rigidbody.AddForce(-forwardSpeed, 0, 0); } if(hori > 0) { rigidbody.AddForce(forwardSpeed, 0, 0); } if(verti < 0) { rigidbody.AddForce (0, 0, -forwardSpeed); } if(verti > 0) { rigidbody.AddForce (0, 0, forwardSpeed); } // Crouching if(Input.GetKey ("x")) { anim.SetBool ("Crouch", true); } else { anim.SetBool("Crouch", false); } } }
Oh yes, thank you for trying to help me PGJ, I realized my problem, when I made the crouching motion, I moved the object down as a whole, and not just the armature, so, when I remade my animations, I found that mistake with testing, and I rectified it, I had forgotten about this post. Again, thank you.