Snack Break Problem #8
Posted on July 5, 2015 by Unclear
Sorry about last week
The problem turned out to be a lot harder than I expected, sorry about that! You can still see my solution over at github; I think it's an interesting problem worth thinking about.
This week's problem
Let's suppose you wanted to make a magical ball in RBX.Lua. This ball can be pushed around and can fall down like a normal unanchored Sphere. Imagine that we call the part directly below the center of the Sphere the closest platform. What makes it special is that it will never be closer than 4 studs from the closest platform, measured directly down from the center of the ball.
This problem is probably best visualized with a diagram showing a profile view of the magical ball.
Here is a profile view of the setup.
Here is a profile view right when the ball reaches 4 studs from the closest platform. Notice how it is measured according to the specifications above.
Commentary
Leave a Comment