Numeric representation of the location of an entity in the game space. There are multiple forms of coordinate systems to cater to a variety of methods to map position.
4
votes
1answer
33 views
How to flip coordinate system in Pyglet?
Is there any way I can flip the coordinate system in Pyglet vertically so that y = 0 is at the top of the screen and a higher y value is closer to the bottom? It is really confusing trying to use ...
1
vote
1answer
62 views
How can I convert screen coordinates to world coordinates on the floor (when the y component = 0)?
I am using the Irrlicht Engine and would like to convert the coordinates of the mouse on the screen to the floor of my world. I am currently trying to use
getRayFromScreenCoordinates()
which ...
-2
votes
3answers
85 views
Check for obstacle [closed]
Programming language: Pseudocode
In my program there will be (among others) two variables, called varX and varY. They will have only positive values, but they may be of varying length. They will ...
2
votes
1answer
104 views
Choosing the correct isometric character facing direction
I am currently building a 3D game presented from a 2D isometric viewpoint.
The 3D coordinates start at the top left corner of the screen with x and y increasing towards the right and bottom edges ...
1
vote
0answers
50 views
Rotate Points with Object in world space
I posted this in the original stack overflow then realized that a game-dev specific one exists.
I am working on personal project that requires me to have 4 points surrounding an object (1 at each of ...
-2
votes
1answer
199 views
Game Editor - When screen is clicked, how do you identify what coordinate you clicked?
This is a follow-up to my earlier question:
Game Editor - When screen is clicked, how do you identify which object that is clicked?
Something I've noticed is that picking only calculates a ray and ...
2
votes
2answers
229 views
Why does handedness matter at all?
I'm really trying to understand this from a mathematical viewpoint. After all, numbers are numbers, the chirality or handedness depends on how one interprets it.
Say I've three basis vectors x (1, 0, ...
0
votes
1answer
58 views
Ways to “invert Z-axis” in shader-based core-profile OpenGL?
In my hobbyist shader-based (non-FFP) GL (3.2+ core) "engine", everything in world-space and model-space is by design "left-handed" (and to stay that way), so X-axis goes from -1 ("left") to 1 ...
4
votes
3answers
373 views
Mapping 3D object coordinates to 2D screen coordinates with perspective projection
Sort of following on from where this person was in their topic:
Matrix for 2D perspective
What I have at the moment is a transformation matrix that's defined as follows:
http://pastebin.com/GM6BhP0R
...
1
vote
2answers
231 views
What is the Box2D coordinates system?
I know that for Box2d I need to translate pixels to meters which is easy peasy. However my problem is what is the orientation of Box2D coordinates system? Is this the same as screen one (right += x, ...
1
vote
1answer
182 views
In 2d game logic, should I use pixels or world coordinates?
Currently in my game I handle the logic (collisions, movement) using pixels but I find it very limiting espiecially when thinking about variable speed.
For example Box2D requires you to use ...
0
votes
0answers
134 views
Converting motionevent.getx and motionevent.gety to pixel or Object coordinates in the view
I am trying to draw buttons using OpenGL I have added a Gesture Listener for the GLSurface View now i have motionevent when ever the user touches. My question is how can i convert motionevent.getx and ...
3
votes
1answer
94 views
Calibration of a 6 DOF tracking device
Setting: In our facility we have a 3D laboratory with 3 large displays (two edge-to-edge on orthogonal walls, one on the ground, also edge-to-edge). Its primary use-case is exploring 3D virtual ...
1
vote
1answer
91 views
SimpleOpenNI: Check if user hand is in specific area on image
Concerning our Microsoft Kinect project, we need some help.
We control a robot with our movements tracked by the Kinect sensor. We display the depth image of the Kinect sensor on our screen, so we ...
1
vote
1answer
62 views
Blender 2.6: Move Mesh to X Coordinate of Another Mesh
An example:
There are two planes A and B with the following median points:
( X | Y | Z )
M_A ( 3 | 2 | 2 )
M_B ( 6 | 1 | 1 )
Now I want to move the plane A on the X-axis to the X coordinate ...