Quantcast
Channel: Answers for "Constant force"
Viewing all articles
Browse latest Browse all 4

Answer by Ludiares

$
0
0
var hit = false; function OnCollisionEnter(collider : Collision) { hit = true; } function Update() { if(hit) { rigidbody.AddForce(transform.forward * 10 * Time.deltaTime) } }

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>