« first day (3535 days earlier)      last day (1492 days later) » 

4:55 PM
Wheeeee, floating point digit expansions are fuuuuun
0
A: Mathf.Round returning wrong values

DMGregoryYou generally want to avoid comparing floats for exact equality. Instead, use a range. float closeEnough = 1f/100f; float differenceFromPrevious = transform.position.y - oldPosition.y; if(Mathf.Abs(differenceFromPrevious) <= closeEnough) { // ... } else { // ... } oldPosition = transfor...

 
 
1 hour later…
6:11 PM
I still find it unusual that some people accept answers to questions but don't upvote (barring the circumstance where the OP doesn't have upvote privileges.)
 
 
2 hours later…
7:53 PM
I dunno. I've definitely made solutions that pass the "did it work?" test but don't quite hit the bar for what I'd call "high quality" ;)
 
 
1 hour later…
9:01 PM
"It works, thanks. And I'm grumpy."
 
Honestly, I'll take that over questions lingering with no accepted answer. ;)
 
Yeah, specially those with comments "Sweet, it works, thanks!"
 
9:58 PM
Yes, but that at least makes more sense in terms of human behavior. I'm annoyed so I will spite you is a thing people do. I am annoyed so I will spite you but only 40% just lacks conviction...
 
 
2 hours later…
11:36 PM
@Tyyppi_77 I think you have experience with this?
0
Q: Creating a game on Linux with SDL and distrubuting it

muyustanYes, now, I want to start game development using C/C++ and I am on a Linux machine. From the resources on the web, I saw that SDL2 is a common API to use. However, I could not get satisfying answers about the following: For me, it is important to be able to distrubite my games to my friends(let...

 

« first day (3535 days earlier)      last day (1492 days later) »