Questions tagged [mathematics]
Mathematics questions deal with the arithmetic, geometry, calculus, formulae and other calculations used in the development of a game.
2,026 questions
0 votes
0 answers
114 views
How do I render points in 3d space given spherical coordinates?
I have a 3d renderer I'm working on, and I need to know how the specific details of the human eye so I can project that to a coordinate, what is the math that does this given spherical coordinates and ...
3 votes
2 answers
137 views
Number system with restricted set of sequence configurations
I am trying to design a novel number system for a game. To do this, I want to create a mapping from a set S of symbols to the integers, where not all sequences of symbols from S are allowed, but they ...
1 vote
1 answer
126 views
Two Point Alignment Transformations
I'm trying to determine the transformation steps (position, scale, rotation) needed to be applied to an object so that two points, locally positioned in that object, line up with two world space ...
0 votes
0 answers
77 views
Projecting 3D gaussian's transform matrix to a 2D viewspace transform matrix
Essentially I'm wanting to project: A 3D transformation matrix of a Gaussian (or in this case for simplicity a unit sphere) that includes scale, rotation and translation in world space TO A 2D ...
2 votes
1 answer
186 views
How to adapt the Anya any-angle pathfinding algorithm to handle non-discrete start/target positions?
Recently, I have been investigating the Anya pathfinding algorithm. Anya is an optimal any-angle pathfinding algorithm. However, it works only with discrete points on the grid. Here is an excerpt from ...
0 votes
1 answer
162 views
Resizing a Sprite in 3D space to match its native pixel size at a target screen resolution?
I am placing a 3D game object with a SpriteRenderer + Billboard attached to it in my scene. However, since it's a distance away from a perspective camera, the sprite gets scaled, losing a lot of the ...
0 votes
1 answer
157 views
Shrink a Circle's Radius Without Deformation Until It's a Solid Spot
I need to shrink the radius of a ring without deforming it by shrinking it's outline(the way scaling it would). I need to do this until the hollow fill is gone and its a solid spot. Here's an example: ...
0 votes
0 answers
42 views
How can I detect which slice of the pie chart my mouse is hovering over?
I'm trying to create a simple pie chart for my game (a strategy/simulation game) to show population demographic data for a province, but I'm struggling to figure out how to detect which slice is being ...