Skip to main content

Questions tagged [trigonometry]

A branch of mathematics that studies triangles and the relationships between their sides and the angles between these sides.

3 votes
6 answers
2k views

I am trying to rotate a vector made of two signed 16-bit coordinates (-32768 to 32767). Using a LUT for sin/cos, I can use the standard method for rotating a vector: ...
IanLarson's user avatar
  • 811
0 votes
1 answer
109 views

I have a very simple code that draws the shape of a pre-defined capsule. It handles everything well, except the case when the GameObject to which the ...
Digika's user avatar
  • 1
0 votes
0 answers
122 views

I know how to move a point in a direction in 2D space it's like this: pointX += sin(angle) * movementSpeed; pointY += cos(angle) * movementSpeed; How do I do the ...
Earthmars643's user avatar
0 votes
1 answer
111 views

I am using this code: ...
Stan's user avatar
  • 3
0 votes
1 answer
65 views

If I have an equation: |A×B|=A.B What would be the angle in between A and B?
Zie's user avatar
  • 1
0 votes
1 answer
177 views

I am working on a game. The camera is freely rotatable by the user. The background is displayed from an equirectangular image. I need to know which pixel of the background image is located under the ...
Matthew Carson's user avatar
1 vote
1 answer
307 views

I've managed to get my sprite enemies shoot at the player with ...
Ghoul Fool's user avatar
0 votes
1 answer
352 views

i am learning how to make a 2d game using sdl and c++ and am currently trying to rotate the sprite so that is always facing the cursor, my game is set up with an entity component system, i have a ...
user21746705's user avatar

15 30 50 per page
1
2 3 4 5
10