Cattywampus
Cattywampus
CC#
Created by Paradoxial on 5/19/2024 in #help
Why does this function return NaN?
just a wild guess, you should debug it and see the conversion value
29 replies
CC#
Created by Paradoxial on 5/19/2024 in #help
Why does this function return NaN?
Possibly due to the radian conversion is invalid. For instance, negative degrees
29 replies
CC#
Created by ScootyScoot on 4/2/2024 in #help
Rectangle intersection not workin
that said, avoid using intersect/overlap on Rects unless they're static objects.
10 replies
CC#
Created by ScootyScoot on 4/2/2024 in #help
Rectangle intersection not workin
Intersect/contains on a Rectangle is just regular method that checks if they're overlapping on static objects(mostly) and they don't do any raycast ahead of them so that's why they can fail in lotta scenarios
10 replies
CC#
Created by ScootyScoot on 4/2/2024 in #help
Rectangle intersection not workin
think of it similar to frame-skipping
10 replies
CC#
Created by ScootyScoot on 4/2/2024 in #help
Rectangle intersection not workin
for example if you're linearly interpolating them, make sure the result of your speed * t * delta on your interpolator /lerp won't surpass the width / height of the target rectangle you're colliding with
10 replies
CC#
Created by ScootyScoot on 4/2/2024 in #help
Rectangle intersection not workin
there are couple of reasons on why your Rectangle.intersect may not work
10 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
is this for modding?
28 replies
CC#
Created by Sir_Crusader on 3/9/2024 in #help
Using Out parameter
aight goodluck!
7 replies
CC#
Created by Sir_Crusader on 3/9/2024 in #help
Using Out parameter
you printed the string not the out var
7 replies
CC#
Created by !Rushaan on 12/25/2023 in #help
An event running every few seconds, want it to run only once
public bool blockExecution {get;private set}

private void SettingWeatherData(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e)
{
if(blockExecution)
return;

//Do the rest of the code here
}
public bool blockExecution {get;private set}

private void SettingWeatherData(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e)
{
if(blockExecution)
return;

//Do the rest of the code here
}
6 replies
CC#
Created by !Rushaan on 12/25/2023 in #help
An event running every few seconds, want it to run only once
Make a boolean property and add a check for that property before executing the rest of the function.
6 replies
CC#
Created by yop on 12/22/2023 in #help
(UNITY) [info] Project system initialization finished. 0 project(s) are loaded...
proly try to update both DevKit and Unity extensions in your vscode
3 replies
CC#
Created by yop on 12/22/2023 in #help
(UNITY) [info] Project system initialization finished. 0 project(s) are loaded...
3 replies
CC#
Created by wuqin on 12/20/2023 in #help
Problem with System.Action
I already explained all of it above
8 replies
CC#
Created by wuqin on 12/20/2023 in #help
Problem with System.Action
it should work if your change the void to string which is the same type as timer
8 replies
CC#
Created by wuqin on 12/20/2023 in #help
Problem with System.Action
this part doesn't return string instead it updates the timer field
public void DisplayTime(){
timer = hours + "." + minutes;}
public void DisplayTime(){
timer = hours + "." + minutes;}
you can fix that by executing the timer.DisplayTime before printing and print the timer field instead
timer.DisplayTime();
Console.WriteLine("\nToilet System : " + timer.timer + situation);
timer.DisplayTime();
Console.WriteLine("\nToilet System : " + timer.timer + situation);
or change the the return type of the DisplayTime to string
public string DisplayTime(){
timer = hours + "." + minutes;
return timer;
}
//Then later on your can call it like this
Console.WriteLine("\nToilet System : " + timer.DisplayTimer() + situation);
public string DisplayTime(){
timer = hours + "." + minutes;
return timer;
}
//Then later on your can call it like this
Console.WriteLine("\nToilet System : " + timer.DisplayTimer() + situation);
8 replies
CC#
Created by kevin on 12/15/2023 in #help
Cant play video in MAUI
feel free to close this if it answered your question
6 replies
CC#
Created by kevin on 12/15/2023 in #help
Cant play video in MAUI
see the example there
6 replies
CC#
Created by kevin on 12/15/2023 in #help
Cant play video in MAUI
6 replies