137 reputation
5
bio website
location Montreal, Canada
age
visits member for 4 years
seen Dec 19 at 16:04

Dec
17
comment How can I tell if an object in a tile grid is surrounded?
To know if the castle is inside the walls, you can simply traverse the grid, starting from the castle position, in any direction, and count the number of walls you traverse until you arrive at an edge of the map; even means you are outside, odd or zero you're in. This is assuming that your walls form a closed shape. But yeah, flood fill is the way.
Nov
19
comment I want to render some surfaces in GLSL with normal maps, and some without
You could simply pass in a flat normal texture and keep the same shader code for all the objects. No need for another uniform or branching.
Apr
23
comment Why are my Unity procedural animations jerky?
You should not invoke GetComponent multiple time to fetch the same component. Just fetch it once.
Jul
9
awarded  Critic
Apr
2
comment Flowfield density conversion
I'm not closer to actually implementing it, but thanks for the answer. Guess I'll read the paper again.
Apr
2
awarded  Scholar
Apr
2
accepted Flowfield density conversion
Apr
1
comment Flowfield density conversion
Ah, it makes sense. But just to be clear, the radius of the unit has nothing to do with the density calculation, right?
Apr
1
comment Flowfield density conversion
I don't understand the reason why the bottom left cells adjacent to the one the agent is in should receive density value while the top right ones should not.
Mar
31
awarded  Student
Mar
31
comment Flowfield density conversion
Could not add more relevant tags because of reputation level.
Mar
31
asked Flowfield density conversion
Feb
5
awarded  Citizen Patrol
Aug
13
awarded  Supporter