3
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 user vision.
I am using the following function to copy the 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 mov2 only on the X and Y axes by eliminating the Z-axis movement? Because my character floats in the scene when I look up.
FPS running https://www.youtube.com/watch?v=dzchFfIwtSQ
FPS with Oculus Rift https://www.youtube.com/watch?v=CwLc7XxRkr8
but it’s not working
– Nangil Rodrigues
This should be a comment for jsbueno, no?
– Math