how to move an object with addforce
Code Example - how to move an object with addforce
using UnityEngine;
void Start(){
rb.GetComponent<Rigidbody2d>.AddForce(Vector2.left);
}
using UnityEngine;
void Start(){
rb.GetComponent<Rigidbody2d>.AddForce(Vector2.left);
}