143 reputation
6
bio website noio.nl
location Netherlands
age 24
visits member for 2 years, 1 month
seen Feb 17 at 15:47
stats profile views 11
Programmer, web designer, AI student.

Jan
28
comment Simple Motor Vehicle Acceleration Function
Thanks for the vote of confidence ;) Which of those functions is most realistic with respect to real cars? 1, 2 and 4 all have a very steep decline, is that what actually happens? (Not to say that I am looking for realism per-se, just curious)
Jan
28
revised Simple Motor Vehicle Acceleration Function
added 46 characters in body
Jan
28
asked Simple Motor Vehicle Acceleration Function
Jan
23
comment Creating an unbiased deterministic collision resolution order
@JohnMcDonald, Actually, I'm doing: for each object in x-order: for each object with a higher x-coordinate (sweep-and-prune) :)
Jan
22
comment Creating an unbiased deterministic collision resolution order
True, so it's actually a tiny bit more complicated, I check for swapped versions of the pair too: if (o1, o2) not in collided: collided.add((o2,o1)).
Jan
21
comment Creating an unbiased deterministic collision resolution order
The problem with that is that each collided tuple (object1, object2) has to be identical, so that I can rely on Python's set() to keep only unique pairs (I only want to notify each pair once ). Adding tuple = (random(), object1, object2) would indeed be a solution, but then collided.add(tuple) would no longer preserve uniqueness of the list.
Jan
21
awarded  Scholar
Jan
21
accepted Creating an unbiased deterministic collision resolution order
Jan
21
comment Creating an unbiased deterministic collision resolution order
I could use a sort key, the problem is that I'm using Python's set() to make sure each pair is only added once to the collided set, adding a sort key would break that behavior.
Jan
21
comment Creating an unbiased deterministic collision resolution order
So your suggestion is to shuffle the collision list, but in a deterministic way? I think the problem is that the collision list is in a nondeterministic order to begin with (because it's a Python set), so I actually need to explicitly sort it based on some property.
Jan
21
comment Creating an unbiased deterministic collision resolution order
This is what I ended up doing. I hadn't even thought about the hashes being unfair too, so I'll do as you suggest and randomize each frame.
Jan
21
awarded  Teacher
Jan
21
awarded  Student
Jan
21
awarded  Editor
Jan
21
revised Creating an unbiased deterministic collision resolution order
added 5 characters in body
Jan
21
answered How to separate colliding objects without creating more collisions
Jan
21
asked Creating an unbiased deterministic collision resolution order
Apr
3
awarded  Supporter
Apr
3
awarded  Autobiographer