↧
Answer by Mike 3
AddForce, not AddforceOne small tip though, change:var bullit = Instantiate(bullitPrefab ...tovar bullit : Transform = Instantiate(bullitPrefab ...and you will get compiler errors from the line below...
View ArticleAnswer by Borgo
Hi!!its not Java, its Javascript (its very diferent).Try to cut out the "rigidbody" in this line:bullit.rigidbody.Addforce(transform.forward * 2000);In the docs:var clone : Rigidbody; clone =...
View Article