Instantly share code, notes, and snippets.

What would you like to do?
var ball = Instantiate(PrefabBall, transform.position, Quaternion.identity);
var bc = ball.GetComponent<BallController>();
bc.Force = new Vector3(
dir.x * arch * closeness,
dir.y * arch * closeness
bc.Distance = dist;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment