Tag Info

Hot answers tagged

5

Scenario It seems your pathfinding and collision detection have different ideas of what's OK, when it comes to walking around corners. Say your pathfinding plans out this path (brown squares are walls, yellows are empty space, green is an enemy character, arrows are the planned path): The enemy character then moves directly toward each point from the ...


5

Since Hearthstone is written in Unity it is trivial to decompile the scripts (because .NET), and this does in fact allow us to see the algorithm for deck building. The algorithm (found in RandomDeckMaker.GetChoices) is actually very simple. It basically tries to pick random cards to bring the deck to the following distribution: 12 class-specific cards ...


5

How about letting box2d do the work for you? It wasn't too difficult for me to setup everything in RUBE: There are two major parts: the wheel and the needle. Wheel First there is a base. In this case the base is a static body with a square fixture. The wheel is attached to the base via a revolute joint. This joint allows the wheel to spin freely ...


2

Your question is quite broad and underspecified, so in this answer I'll focus on finding river flows. Within the field of computational geometry there is quite a bit of research on the topic of drainage networks on a terrain. An overview can be found in section 3.5 of this article: Digital Elevation Models: overview and selected algorithms. A useful ...


1

I'm assuming you will award bonus time very some amount of points (i.e. every 100 points, starting at 200), But this can be modified to handle any type of case. Just use integer division to check if the value has been reached and update the last awarded value when reached. For example: // this value should be global scope (class member) int last = 1; // ...


1

If you are talking about move horizontally and vertically at a same time, the problem is not here. You are doing fine. Maybe problem belong to input module. About A*, it's a path finding algorithm, it return series of point present the path you ask for. Movement is another problem, don't stick it with A*. The easiest way to implement moving system are ...


1

I think that tutorial actually contains all you need. It mentions that the order of rotations is Z, then X, then Y. I don't know Unity's quaternions, but you are either doing Z then Y then X, or the reverse. Try swapping x_rotation and y_rotation when you calculate your final rotation.



Only top voted, non community-wiki answers of a minimum length are eligible