Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3Olympic GamesXXL SpeedrunningXXL Romastered SpeedrunningXXL 2 SpeedrunningXXL 2 Remaster SpeedrunningOlympic Games SpeedrunningRecent StratsOther Asterix GamesOther GamesAsterix MediaSpoofy GoofsCreative ShackVideosHelpBot SpamRetro GamesModdingStreamsPatchesModsToolsResourcesDownloadsWikiUnfair XXLCaesar's ChallengeIntroductionsVC TextAnnouncementsVillage GatesRulesFeedback

#vc-text

baku
function live local center = move your fucking ass local myPoint = getTheFuckOutofHere end return i was kidding
PegPeregoGaucho
wouldn't you need to rotate it anyways
schmeling65
PegPeregoGaucho
ah yeah sure thank you
PegPeregoGaucho
now I understand
PegPeregoGaucho
:Obelul:
baku
xD
PegPeregoGaucho
you can also have something like -pi for your randangle
PegPeregoGaucho
so like -math.pi*math.random()
PegPeregoGaucho
above the green line?
PegPeregoGaucho
so between 0 and pi or what? Or is that just for reference?
PegPeregoGaucho
but why do you not just adjust the randAngle? :pauselix:
PegPeregoGaucho
kind of weird way to do it but if it works it's fine i guess
PegPeregoGaucho
also not sure if your language has a do while-loop, but instead of doing something like ```lua local myPoint = getRandomPointOnCircle(center.X, center.Y, 25000) while not isOnLeftSide(myPoint, center, n) do myPoint = getRandomPointOnCircle(center.X, center.Y, 25000) end return myPoint ``` You could use a do while loop: ```lua do myPoint = getRandomPointOnCircle(center.X, center.Y, 25000) while not isOnLeftSide(myPoint, center, n) end return myPoint ``` If lua can do something like this :Obelul:
baku
xD
PegPeregoGaucho
```c++ Vector2 myPoint; do { myPoint = getRandomPointOnCircle(center.X, center.Y, 25000); } while (!isOnLeftSide(myPoint, center, n)); ```
PegPeregoGaucho
why no?
PegPeregoGaucho
@schmeling65https://www.lua.org/pil/4.3.3.html
PegPeregoGaucho
what about this?
PegPeregoGaucho
If you have a single if the point you get after calling getRandomPoint might still be on the right side