Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to move an object with addforce

using UnityEngine;

void Start(){
  rb.GetComponent<Rigidbody2d>.AddForce(Vector2.left);
}
 
PREVIOUS NEXT
Tagged: #move #object #addforce
ADD COMMENT
Topic
Name
2+9 =