Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

create a portal in VR

teachung
Explorer
Explorer

create a portal in VR

teachung
Explorer
Explorer

I encountered a problem.

I want to create a portal, when I enter the trigger_a area I will transfer to point 0,0,0

 

However, when I enter the trigger_a area, 3D max interactive will crash now.

 WkSvMgr 1252018 113449 AM.bmp.jpg

Have any solution to solve this problem?

 

Thanks a lot.

Reply
Reply
0 Likes
Reply
387 Views
3 Replies
Replies (3)

Shanii2
Collaborator
Collaborator

You havent created any sense out of your logic,. first you need to observe the folow nodes of VR how you actually move across the place,  and secondly trigger objects are triggered by a specifi physics template for 'character' template its trigger is 'Character_trigger' template.  for default template it is 'trigger' template, or you can creat your own collision templates in global physics file in root of your project directly , you need to first the basics,  and start from templates it would help better

Reply
Reply
0 Likes

teachung
Explorer
Explorer

I use Desktop VR template to create this scene.

 

I tried to use 'Character_trigger'  but nothing happen.

And I tried using'  trigger' template, is work when I shooting the laser point to touch the 'trigger' template.

 

 

Reply
Reply
0 Likes

Shanii2
Collaborator
Collaborator

You cant get results out of the box you must understand the basics.....  a trigger is actually ann invisible physics body which when collides with a matching template of it, fires out a trigger event. look in the .global physics file to know how the collision filters actually work and you can create your own..  most people in VR are confused by this...   HMD IS NOT A COLLISION BODY............... it's just another sorta camera giving VR view...    You need to Attach an object with it.. you can parent link the Player capsule unit object with HMD's Local pose and rotation and assign it the Physics actor template of character trigger...   Physics work with the real object not arbitrary, camera's, locators, Hmd's....    the way the laser pointer is working is that a Small spot point 'unit' is spawned dynamically each time it hits a surface.. and a physics is applied on that Units mesh...Check up the help docs to understand the basics first. You can also use the raycast .. as well if you don't want to do with mesh physics , cast a ray from hmd's position onto a surface and by giving it a template you can trigger the Portal effect.

Reply
Reply
0 Likes