x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to give a collision to VR camera

I am developing a VR character which has a VR camera. I have open the "Lock to HMD" option in the camera options so that the camera could move with the player's walk. I want the camera to has a collision so that the player could not walk through a wall. So, I want to add a collision to my character camera. While, if I give the collision to the capsule, the capsule will not move with the VR camera when playing game, if I give the collision as the camera's child component, when hit event happen, the camera will not stop by its child component. So How can I Do?

Product Version: UE 4.11
Tags:
more ▼

asked Apr 30 '16 at 02:48 PM in VR

avatar image

杨宇宁
96 3 15 8

avatar image skjcul Jul 10 '16 at 09:51 AM

I got the same issue, have you solve this problem?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

In the viewport, just make an actor collision component that is a child to the camera.

more ▼

answered Nov 13 '16 at 06:51 PM

avatar image

gfaster
6 4

avatar image numsi550 Dec 02 '16 at 02:25 PM

I have the same problem, so I tried to put a sphere collision as a child to the camera, but the HMD can still go through walls.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Is it something along this you wanna do? https://www.youtube.com/watch?v=xuO2E59kBfo&t=1s

Note, i haven't figured out a way to stop the camera from passing through walls, but might have found a workable way of preventing too much of it. Stopping a camera from following the hmd position, might cause all kinds of simulation sickness, so maybe that*s why we can't do it? Not entirely sure though.

more ▼

answered Dec 29 '16 at 11:17 PM

avatar image

Jonas_Molgaard
491 29 25 47

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I was recently working through this issue, I realized that you don't actually want to move the camera itself (think about it, the player is in a certain spot within their physical square of playspace, you can't just arbitrarily move the camera, it would totally throw off where they are in their playspace).

The solution is to move the DefaultSceneRoot/VROrigin inside MotionControllerPawn in worldspace.

more ▼

answered Oct 27 '17 at 10:16 AM

avatar image

uJelleh
11 3 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey: Use post process effect fade to black on each wall

more ▼

answered Oct 27 '17 at 09:46 AM

avatar image

Vincent.rieuf
1 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question