The angles tag has no wiki summary.
29
votes
3answers
1k views
Why are radians preferred over degrees in game development?
I've been looking up the definition of radians and found out that mathematicians prefer them because they are derived from pi instead of being completely arbitrary like degrees.
However, I have not ...
0
votes
0answers
39 views
Using Angles (or rotation) with Vectors for Car physics
I've been reading this blog that explains basic linear algebra for game developers and I understand the basics of vector mathematics.
I'm using vectors to create a car that simulates the very basic ...
0
votes
1answer
18 views
Angle Adjustment on the Y Axis
I just started learning 2D game development using CreateJS and I was reading this article about angular velocity to learn how to correctly move a sprite in both x and y axis.
I understand most of it ...
0
votes
0answers
72 views
How do I ADD gravitation to a rotation matrix?
I have ported the Matlab script from https://instruct1.cit.cornell.edu/courses/bionb441/LSystem/ to POV-Ray and everything works fine (although I'm not quite sure why). To navigate a "turtle" through ...
0
votes
1answer
117 views
How to shoot on direction of touch
I'm new to the Corona SDK(and I also suck in trigonometry) and I'm trying to achieve this:
Shoot a bullet from the player, towards the direction of the point the user touched, but always with ethe ...
0
votes
1answer
287 views
gamemaker getting a ball to bounce 90 degrees off of a 45 angle
I am trying to get a circle to bounce off a 45 degree diamond shap using Gamemaker Studio.
I would like the ball to bounce in straight lines so my directions would be 0, 90, 180, or 270 degrees, ...
1
vote
0answers
63 views
Surface normal to screen angle
I've been struggling to get this working. I simply wish to take a surface normal and convert it to a screen angle.
As an example, assuming we're working with the highlighted surface on the sphere ...
4
votes
2answers
531 views
Perfect FPS camera angle
I am making a multiplayer FPS and I am in search of some helpful tips on the perfect FPS camera angle. Because it is a multiplayer, I am making a full body model holding the gun, I find, however, that ...
4
votes
2answers
194 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 ...
1
vote
1answer
2k views
How to extract euler angles from transformation matrix?
I have a simple realisation of entity/component game engine.
Transform component have methods to set local position, local rotation, global position and global rotation.
If transform is being set new ...
2
votes
2answers
222 views
2D field of view detection inverted
I'm not sure if the title matches what I'm actually facing
I'm trying to test if I can see a point is in my field of view (in the context of an NPC seeing in it's direction.)
I know that:
cos0 = ...
13
votes
2answers
1k views
What is the view perspective angle of most 2.5D isometric games
I examined several quite popular games to determine what perspective angle they are using. For the purpose I created a grid that is 45 and 60 degrees isometric viewed and put it onto a screenshot (of ...
2
votes
2answers
325 views
How to get enemy to follow character using angles? (atan2)
I have an enemy and a character to control. I want to get the enemy to follow the character in a straight line. I already found the angle in which the enemy needs to travel.
double angle = ...
1
vote
2answers
551 views
Matrix Rotation with three Angles
I want to rotate a form with three given angles fo each of the three axis. But the GLM rotation function takes only one angle and a vector as arguments.
How can I convert between both formats?
3
votes
2answers
248 views
what does AngleVectors method in quake 3 source code does
I just downloaded quake 3 for learning purposes.
I know some of some linear algebra(basic vector math ie: dot,cross product).
However I can't decipher what below method does, I know what is yaw,pitch ...
1
vote
1answer
759 views
Unity: parallel vectors and cross product, how to compare vectors
I read this post explaining a method to understand if the angle between 2 given vectors and the normal to the plane described by them, is clockwise or anticlockwise:
public static AngleDir ...
1
vote
2answers
279 views
Tangent to a circle through a point
I'm trying to figure out how to calculate the following angle:
I know center (p1) and radius (r) of a circle. Given a point p3 I want to calculate the angle a such as the tangent (tan) of the circle ...
2
votes
2answers
340 views
Calculating the correct particle angle in an outwards explosion
I'm creating a simple particle explosion but am stuck in finding the correct angle to rotate my particle. The effect I'm going for is similar to this:
Where each particle is going outwards from the ...
1
vote
0answers
208 views
Getting and Setting Rotation in XNA around the Center of my Model with XNA
Alright, so I'm currently debating how I want to do this. Basically this is what I'm trying to accomplish.
I've created a system to allow me to make my environment a little bit easier. I'm ...
1
vote
1answer
393 views
Ball bouncing at a certain angle and efficiency computations
I would like to make a pong game with a small twist (for now).
Every time the ball bounces off one of the paddles i want it to be under a certain angle (between a min and a max). I simply can't ...
1
vote
2answers
201 views
How can I determine the direction of turn?
I want a function that gives me the turn direction for my object (1 or -1)
I have two angles
1 - current rotation(A)
0 <= A <= 360
2 - target rotation(B)
0 <= B <= 360
int turnSide ...
-3
votes
1answer
513 views
c# xna move Image using two Vectors?
initially image placed (0,0)th position and where ever i touch that is end position.
Now i got Start Position(0,0) and End Position(200,200).
i want to move start to end vector using angle.
If ...
0
votes
1answer
372 views
Calculate path of laser beam?
Lets say we have a laser beam emitter that has a position and an angle (in a 2D world to simplify things). The laser emitted from that emitter will start at that position, and continue heading in the ...
3
votes
3answers
3k views
Getting the angle between two objects?
I have a set of boxes which create a sort of path, they don't intersect very smoothy and to help that process I'm trying ot find a way to get an angle between them that can make it easier to generate ...
11
votes
7answers
4k views
Comparing angles and working out the difference
I want to compare angles and get an idea of the distance between them. For this application, I'm working in degrees, but it would also work for radians and grads. The problem with angles is that they ...