Instantly share code, notes, and snippets.

Embed
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,
force,
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