About acquisition and operation of player's position
About acquisition and operation of the player's own position
When running with the VR version STYLY app (Steam / Oculus Mobile / Daydream / Nreal)
- About the use of
[VRTK]_VIVE
GameObject that represents the position of the player's feet- You can get a GameObject named
[VRTK]_VIVE
with theFind Game Object
- You can check the details in this article.
[Unity / Playmaker] How to get a camera and implement interaction using a camera
- You can check the details in this article.
- This GameObject represents the position of the player's standing feet.When the player teleports, it will move to the position of the player's feet.
- This GameObject doesn't move just by physically moving a real VR headset.
- You can force the player's position to move by changing the coordinates of this GameObject.
- It's okay to add another GameObject as a child of this GameObject.These are discarded at the end of the scene.
- You can get a GameObject named
- About acquisition of main camera
Get Main Camera
You can get the GameObject of the camera by the action.- This GameObject represents the position of the player's eyes (center of both eyes).
- It can be used when you want to respond to the fine movements of the player's head.
- There is no way to force this GameObject to work.Please use
[VRTK]_VIVE
above. - important point
- Adding other GameObjects as children of the camera's GameObject is not recommended as it can affect the following scenes:
- It is not recommended to add or modify Components to the camera's GameObject.
- About the use of
For players in the web version of Studio and STYLY Gallery
- About acquisition of main camera
Get Main Camera
You can get the GameObject of the camera by the action.- It is possible to move it by moving the coordinates of this GameObject.
- important point
- Adding another GameObject as a child of the camera's GameObject is not recommended as it may affect the following scenes, etc.
- About acquisition of main camera
About mobile version
- About acquisition of main camera
Get Main Camera
You can get the GameObject of the main camera by the action.- It can be used when you want to make a change depending on the player position.
- It is not recommended to force the GameObject on the main camera to move.
- important point
- Adding other GameObjects as children of the camera's GameObject is not recommended as it can affect the following scenes:
- It is not recommended to add or modify Components to the camera's GameObject.
- About acquisition of main camera
How to get player positions compatible across platforms
[VRTK]_VIVE
GameObject first, and if the result is Null, get the GameObject of the camera with Get Main Camera.- Please note the difference in characteristics between the two.
About acquisition of controller position
- Steam version / Oculus version / Daydream version When running with the STYLY app
Find Game Object
You can get the GameObject that represents the coordinates of the controller by specifying the following name inObject Name
- For left hand controller
Controller (left)
- For right-hand controller
Controller (right)
- For left hand controller
- It's okay to add another GameObject as a child of this GameObject.These are discarded at the end of the scene.
- The following articles will be helpful for more details.
[Unity / PlayMaker] How the controller collides with an object and raises an event (COLLISION EVENT)
- For web version Studio and STYLY Gallery players, STYLY app for smartphones
- I can't get it because I don't have a controller.