9/8/2023 0 Comments Bricks n balls ball sizeRigidBody.AddForce(rigidBody.velocity* speedUp) RigidBody.AddForce(new Vector2(xForce.Next((int)-speed, (int)speed), speed) System.Random xForce = new System.Random() Just starting a tuto and I'd like to constantly increase the speed of my ball, but damn I'm so bad at maths I can't even figure how to do, here's what I do at the moment : // I'm giving the first force (random x) when you engage the ball, in the Start method
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |