Skip to main content

Questions tagged [mathematics]

Mathematics questions deal with the arithmetic, geometry, calculus, formulae and other calculations used in the development of a game.

0 votes
0 answers
114 views

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 ...
Xflightenjoyer's user avatar
1 vote
1 answer
271 views

Let's say I have like 500 Asteroids and I'm using SAT to determine whether a collision with the Spaceship object has happened. This would require an insane amount of CPU cycles, so it makes sense to ...
Jared Kosiba's user avatar
3 votes
2 answers
137 views

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 ...
Joselin Jocklingson's user avatar
1 vote
0 answers
45 views

I would like to make the square move strictly along a square trajectory. The square will later be used to mask the main sprite. How to achieve this result? How to move the square along the square's ...
White Raven's user avatar
1 vote
1 answer
127 views

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 ...
Zeppelin's user avatar
0 votes
1 answer
146 views

I am making a slot game with 3 x 5 reels. The RTP I am targeting is 99%. My reel data is given as (yaml): ...
Ilian Zapryanov's user avatar
0 votes
0 answers
77 views

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 ...
Arcane Blackwood's user avatar
1 vote
1 answer
580 views

Let's say I have position A, that is (0,0) and Position B that is (10,5). Now let's say I know that position C is 5 units' distance from position A in direction to Position B. Provided that the ...
user57129's user avatar
  • 133
2 votes
1 answer
188 views

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 ...
Lukas Makor's user avatar
0 votes
1 answer
129 views

I'm developing a game with Unreal Engine 5.4.4. In the game, I'm trying to rotate a sphere around its Z axis. If I put the sphere on the map and add a rotation around its Z axis is easy. I only have ...
VansFannel's user avatar
0 votes
1 answer
164 views

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 ...
PayasoPrince's user avatar
0 votes
0 answers
49 views

Designing a space game, where each ship has a certain size/ number of layers of armor. for example 3 layers size 7.. .Which would look like this: ...
Pliny's user avatar
  • 111
0 votes
1 answer
162 views

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: ...
PayasoPrince's user avatar
0 votes
1 answer
125 views

I am having a weird issue with the position of my sphere mask. Here is what it looks like currently: The white disc should be directly under the player character, not shifted off to the side. ...
Juicef's user avatar
  • 129
0 votes
0 answers
42 views

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 ...
Jax's user avatar
  • 474

15 30 50 per page
1
2 3 4 5
135