-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reset all VR object's z-index? #19
Comments
I'm not entirely clear what you're asking, but I'll do my best. I'm guessing you don't mean While the x axis goes left/right (left is negative, right is positive) and the y axis goes up/down (down is negative, right is positive), the z axis goes front/back (away from the viewer is negative, toward the viewer is positive). Of course, that's just relative to where the viewer is looking when the simulation starts. If the viewer turns 90 degrees to the right, then the z axis becomes left/right. One possible point of confusion here is that, while in many simulations, the viewer starts at You are free to move any object, including the viewer. To move the object, do something like this: VR.box() // create a box
.moveTo(-1, 3, 1); This example creates a box and moves it 1 meter to the left, 3 meters up and 1 meter "forward" or toward the viewer. The box will actually be 3 meters away from the viewer along the z axis, since the viewer is already 4 meters back. While To move the viewer, there is an object called |
Sorry , I forget can't add div tag in here, and I should use another way to ask my question. Have any idea to add image tag like the ex. '< img src="" width="300" height="300" >'? |
you mean an image in VR or in github? |
Hi ,
I try to add own "< div >" in your example , but I think your VR object z-axis is max , can I know how to set the z-index in this example?
The text was updated successfully, but these errors were encountered: