Jan-29-2017, 04:47 AM
I have two question
1)how to find the object given the location of the object?
Let's say I draw a cube at coordinate x y z ,4 5 3 respectively.
I want Python to print "cube" when I search the coordinate 4,5,3.
How would I do it?
I can use a variable to keep track the coordinate of every object in the game,but I have infinite amount of object generated in the game scene(using infinite procedural generation)
2)how to find the location of the object given the object name?
Note:I am using OpenGL
Note2:there must be something in OpenGL(or pygame) I can use to keep track of the location of all object in the game scene.
Is there?
1)how to find the object given the location of the object?
Let's say I draw a cube at coordinate x y z ,4 5 3 respectively.
I want Python to print "cube" when I search the coordinate 4,5,3.
How would I do it?
I can use a variable to keep track the coordinate of every object in the game,but I have infinite amount of object generated in the game scene(using infinite procedural generation)
2)how to find the location of the object given the object name?
Note:I am using OpenGL
Note2:there must be something in OpenGL(or pygame) I can use to keep track of the location of all object in the game scene.
Is there?