↧
Answer by Ludiares
var hit = false; function OnCollisionEnter(collider : Collision) { hit = true; } function Update() { if(hit) { rigidbody.AddForce(transform.forward * 10 * Time.deltaTime) } }
View ArticleAnswer by SilverTabby
There are two ways to change the gravity affecting an object: You can change the Physics.gravity constant to affect all objects or you can add gravity by hand Editing [Physics.gravity][1] is simple...
View ArticleAnswer by Ludiares.du
var hit = false; function OnCollisionEnter(collider : Collision) { hit = true; } function Update() { if(hit) { rigidbody.AddForce(transform.forward * 10 * Time.deltaTime) } }
View ArticleAnswer by SilverTabby
There are two ways to change the gravity affecting an object: You can change the Physics.gravity constant to affect all objects or you can add gravity by hand Editing [Physics.gravity][1] is simple...
View Article