Game Engine: Unreal.
扔彩虹
![](https://cdn.lihkg.com/assets/faces/tiger/money.gif)
首先最緊要 等係彩虹. 其次係張枱.
![](https://cdn.lihkg.com/assets/faces/tiger/hello.gif)
彩虹既outline, 各項獎品範圍寬度 全部自訂.
![](https://cdn.lihkg.com/assets/faces/tiger/like2.gif)
彩虹 RainbowController:
float Outline/Choice/Large/Medium/Small Length;
![](https://na.cx/i/mZpR7fc.gif)
枱面 TableController:
枱面長,闊,高 全部自訂.
為左加強難度
1. 枱面同埋玻璃高度 可以tune.
![](https://cdn.lihkg.com/assets/faces/tiger/rpg7.gif)
2. 無記錯 仲有果個落坑位 可以有/無.
就算有 佢可以較得好近 所以有機會彈返去枱面.
當然仲有 枱面距離玩家既距離.
![](https://cdn.lihkg.com/assets/faces/tiger/angry.gif)
float tableX,Y;
float holeX,Y;
float tableHeight,
float edgeWidth;
float glassHeight;
![](https://na.cx/i/YOUiNhs.gif)
result片:(simulate in Unreal Engine) :
https://youtu.be/PYsLXbeRmcU?si=ZAMkY4-Fb3BWFxfc
Table Generator Code:
![](https://na.cx/i/nsrX2SK.png)
Rainbow Generator code:
![](https://na.cx/i/RgSoYrT.png)
![](https://cdn.lihkg.com/assets/faces/tiger/glasses.gif)