I'm developing a game in Blender and programming in Python. I had to develop solutions to work with oculus rift. Where my character follows the movement of the user's vision.
I'm using the following function to copy camera movement to the character:
import bge
def main():
scene = bge.logic.getCurrentScene()
mov1 = scene.objects["Camera"]
mov2 = scene.objects["Cube"]
mov2.worldOrientation = mov1.worldOrientation
How do I limit the copy movement of the mov2 only on the X and Y axes by eliminating movement of the Z axis? For my character floats on the scene when I look up.
FPS running link
FPS with oculus rift link