okocha1337 Posted September 9, 2019 Share Posted September 9, 2019 Hello, can someone tell me how to make a portal at a fixed position in a room? actually the demo just let me use the controller to make a new portal. but I need it at the same position all the time. thanks for your help. @Daniel_Y Link to comment Share on other sites More sharing options...
reneeclchen Posted September 10, 2019 Share Posted September 10, 2019 Hi @okocha1337, Simply look for "ViveSR/Prefabs/DefaultPortal" or "ViveSR_Experience/Prefebs/PortalWithParticle", and place either of those prefabs in a position of your choice. Renee Link to comment Share on other sites More sharing options...
okocha1337 Posted September 10, 2019 Author Share Posted September 10, 2019 Thanks for your answer. I tried this but then can't go into the vitual world. The headcollision doesn't work properly. I run through the portal and stay in the real world. The collision manager tells me that I am in transition but I dont switch the camera to vr. Can you help me? @reneeclchen Link to comment Share on other sites More sharing options...
reneeclchen Posted September 11, 2019 Share Posted September 11, 2019 @okocha1337, Each portal prefab has a component "ViveSR_Portal", in which the Vector4 variable "planeEquation" has to be kept consistent with the normal direction of the portal. The function "UpdatePlaneNormal()" is for this purpose. Execute this function on Awake() and whenever the portal's transform is changed. Renee Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.