- Home /
Question by
unity_J929wj0hWQGW5w · Apr 11, 2020 at 06:19 PM ·
unity ads
C# and unity Rigidbody
soo... I just started using C# and unity and i was watching some tutorial video(link text) and i have come across a problem when i tried to make the player move forward it didn't work and if someone can help me with this problem i will be very thankful
using UnityEngine;
public class playermovemant : MonoBehaviour{
public Rigidbody rb;
// Update is called once per frame
void FixedUpdate()
{
rb.AddForce(0, 0, 200 * Time.deltaTime);
}
}
Comment