Quantcast
Channel: Questions in topic: "not moving"
Viewing all articles
Browse latest Browse all 11

Roll-a-Ball Tutorial- Ball not moving

$
0
0
So I have started doing the Roll a ball tutorial and have gotten up to the second part,moving the player. However I cannot seem to get the ball moving despite my code being exactly the same as in the video and everything in Unity correct Here is my code for it: 1.using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour 5.{ void FixedUpate () { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical = Input.GetAxis("Vertical"); 10. Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical); rigidbody.AddForce(movement); } 15.} If anyone could help me out that would be great

Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>