WaffleDevs
WaffleDevs
CC#
Created by oldcoder on 8/20/2023 in #help
About AI code tools like Github Copilot
Cool
24 replies
CC#
Created by oldcoder on 8/20/2023 in #help
About AI code tools like Github Copilot
Visual studio has something like that for c#
24 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
I am very thankful for all the help you guys (mainly Kouhai) provided 🙂
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
instead of the 0.008f i was stuck on
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
Fucked this up 🙂 Needed to fround js's and compare as a double. it was actually 0.00800000037997961d
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
I have solved the issue
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
Every single time there was some work around
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
Yes i get that. Ive been told that more than twice during this
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
SmoothStep = 0.008 for both
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
Thats shitty to look ath but gets the point across
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
(float)that = Math.fround(that) = 0.448212206363678 for both languages. C#: (double)(Mathf.SmoothStep(0.008f, 0.05f, ((float)num - 2400f) / 1000f) * (float)that); 0.003585697850212455 JS: (CSharpMath.SmoothStep(0.008, 0.05, (num - 2400) / 1000) * Math.fround(that)); 0.003585697650909424 JS: Math.fround(CSharpMath.SmoothStep(0.008, 0.05, (num - 2400) / 1000) * Math.fround(that)); 0.003585697617381811
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
wrong replied message
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
For some reason it wasnt working last time i was doing it. I dont know what but it does now
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
i need it to be a float
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
That turns it to a double
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
doesnt do what i need
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
But i am experiencing something odd. still testing myself before asking though
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
This is what i got, and they are equals
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
C#: Math.Clamp(num3 * (double)((float)random2.NextDouble()), 0.0, 1.0); JS: CSharpMath.Clamp(num3 * new Float32Array([random2.NextDouble()])[0], 0, 1);
96 replies
CC#
Created by WaffleDevs on 8/19/2023 in #help
❔ Need Help Understanding Casting
I know Kouhai is going to come out of the shadows and give me a different answer, but i am going to be sticking with new Float32Array([that])[0]) for the JS version
96 replies