i did code from this and my object is still not moving forward
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
// This is a reference to the Rigidbody component called “rb”
public Rigidbody rb;
public float forwardForce = 2000f;
//We marked this as "Fixed"Update because we
// are using it to mess with physics.
void FixedUpdate()
{
rb.AddForce(0, 0, 2000 * Time.deltaTime); // Add a force of 2000 on the z-axis
}
If it’s not what @Kaart has suggested, could you include some more information? Any errors in the console? Any other strange / unexpected behaviour? Or just nothing at all?