Scripting Helpers is winding down operations and is now read-only. More info→
← Blog Home

Snack Break Problem #8

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.

Get the full Snack Break problem here.

Look at a solution to last week's problem here.

Commentary

Leave a Comment

woodengop says: July 16, 2015
Easy, But I won't do it cause Suki trolled us.
xolbStudios says: July 20, 2015
Just do some raycasting :P
RadiantSolarium says: August 7, 2015
Seems easy.
deputychicken says: August 23, 2015
No one did it omg
TerrodactyI says: September 12, 2015
Did it. Check my models, it's a magic ball. :3