Arithmetic, geometry, calculus, and all else which resolves the number-crunching necessary in a game. Math questions are those that deal with the formulae and calculations used by the game in various parts.

learn more… | top users | synonyms

-2
votes
0answers
17 views

Bullet not return when player shoot to any object [closed]

package com.example.game4; import java.io.IOException; import java.util.Iterator; import java.util.LinkedList; import javax.microedition.khronos.opengles.GL10; import ...
3
votes
0answers
61 views

Drone targeting

Imagine a "drone" and a target point on a 2d plane. There are eight parameters: P = my position Q = target position V = my velocity I = my moment of inertia w = my angular velocity s = my angular ...
2
votes
1answer
44 views

Rotation independent rotation

I came up with some cube rotating, but I could not make it smooth and easy to use because as the cube turned - the keys that handle the turning changed their purpose. Link to demo. The demo rotation ...
4
votes
2answers
119 views

Getting an angle in degrees from north

This may have been asked already, but I was unable to find it, because I don't really know what I'm looking for. I drew a picture: I need theta. I've seen various solutions using Vector.Dot, and ...
3
votes
1answer
113 views

What algorithm to use to fill a KenKen square board with cages?

I am working on recreating KenKen, a popular math puzzle involving a blank grid that is divided into "cages". Each cage is just a collection of adjacent squares and has a clue which is generally a ...
-1
votes
0answers
65 views

Career advice for design-oriented mathematician working in games [closed]

Lately, I've been looking for a career change. Over at Math StackExchange, I saw this answer discussing applications of mathematics to game development. Some of it had to do with graphics ...
0
votes
0answers
50 views

Going from point a to b through a curve using “gravity” [duplicate]

I have enemies and when they die they spawn an energy ball with a given velocity. I want to move this ball to the player using "gravity" to create a curved path. I have a version of the function but ...
4
votes
1answer
130 views

1D functions and shapes

I have a set of numbers I normalize ( so the converted number is between 0 and 1 ) which I want to pass trough a function, which in return gives me a different number between 0 and 1 based on the ...
-1
votes
0answers
57 views

Vector2 class design decisions

I'm designing my framework and i was wondering about what features would people appreciate to see in Vector2 class and also i wanted to ask you what design decisions would you like to see there. ...
-2
votes
0answers
127 views

dont understand 3d to 2d equation [solved] [closed]

solved: the power at the end of the equation is because the difference in depth is exponential for those who see it in the future learn about exponential function. i learned it a week ago and ...
4
votes
3answers
141 views

Fast method of detecting whether point is inside mesh

I'm trying to construct a 3d object from a large number of particles. I think this is called BVH (Bounding volume hierarchy). I figured the best way is to draw the particles inside the mesh, then let ...
0
votes
0answers
62 views

Math concepts from the ground up; practical uses in game design? [duplicate]

I recently went back to school and chose to start learning math from the ground up, to ensure proper footing in higher level courses. I was always interested in game design and took a computer science ...
3
votes
2answers
104 views

Discover x,y coordinates given set arc distance and rotation

I have a turn-based car simulation. My vehicles have a maximum speed they can travel in a round, as well as a maximum amount they can change their heading over the course of a round. Say, 20 meters ...
2
votes
1answer
67 views

RGB to xyY color space conversion and luminance

The luminance calculated by following GLSL functions (fragment shaders - tonemap) has different value: float GetLuminance (vec3 rgb) { return (0.2126 * rgb.x) + (0.7152 * rgb.y) + (0.0722 * ...
13
votes
1answer
257 views

How to simulate early politics? [duplicate]

I'm making a historically accurate game where the player can interact with past times and shape the future. The entire game is scientifically generated with math and real physics. (no, it won't have ...

1 2 3 4 5 37
15 30 50 per page