C
C#5mo ago
TearsRfuel

why is this while loop infinite?

this is crashing unity: (complete beginner btw literally just started messing around with code 2 days ago) If i click on an object with a cube or sphere tag, generate some random values, destroy the object I clicked on, genereate a new random spawn position using the random values. WHILE the new spawn position is colliding with an existing object, generate a randomSpawnPosNew, and set randonspawnPos equal to that, once the random spawn position is not colliding with any other objects, instantiate the object that we clicked on.
No description
6 Replies
Saber
Saber5mo ago
your not generating a new random position, your just reusing the exact same position
TearsRfuel
TearsRfuel5mo ago
oh right cus the random values are the same whats a good way to generate a new position?
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
TearsRfuel
TearsRfuel5mo ago
i actualy treid that and it failed
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
TearsRfuel
TearsRfuel5mo ago
tis true i follow you ive been changing things
Want results from more Discord servers?
Add your server
More Posts
Tips on error handlingI'm currently using OneOf to handle errors. For example: ```csharp public async Task<OneOf<None, N✅ Trying to send message to a specific user in signalR but javascript is just not recieving the dataTrying to send message to a specific user in signalR but javascript is just not recieving the data IOnline solo class for learning Cloud Azure.Hi, can someone recommend good online course/training with /expert/interesting/ho to feel/ Cloud Social Media & AI .Hi All, Just a quick question for those interested in AI technology, specifically with Social MediaVisual Studio 2022 winforms problemEror: CS1061 ```csharp private void btn_Giris_Click(object sender, EventArgs e) { if (!sCombine string formatting (eg `$"{number:N2}" with D2) so like `{number:N2D2}`)You have string interpolation like $"{number:N2}", how can I combine formats? Like $"{number:N2D2}".NET MAUI Android Error: Type androidx.collection.ArrayMapKit is defined multiple timesthis error happens to me when i download firebase storage or firebase firestore plugins. New projectI'm getting "specified method is not supported" when I include a specific navigation property with eI'm using ASP.NET Core Identity with a custom IdentityUser that looks like this: public class AppliIs there a way to authenticate using OAuth2 token and map it to internal JWTBasically, my server checks for some stuff by utilizing OAuth2 token and returns JWT Im looking for Beginner question. what does this createhostbuilder do?I'm learning .net core and I saw this code in program.cs. I can understand the main method calls thi