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"

Hand mesh collision

Hi there.

Is there a way to block the move of a hand mesh (attached to my controller) so that the hand doesn't pass through walls and so ? As an example, in Valve's "The Lab", there is a whiteboard ; when using a pen on it, the pen stays ON the board, even if the hand goes far away through the wall. (but there is no hand mesh). Thanks !

working on 4.13.1 with HTC Vive and controllers.

Product Version: UE 4.13
Tags:
more ▼

asked Oct 03 '16 at 03:10 PM in VR

avatar image

Teapot Creation
165 22 33 47

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

1 answer: sort voted first

Alright, I finally used a relative transform when hitting a collision capsule. I had to move the hand mesh instead of trying to move the controller (which cannot be moved, though). It pass through the board sometimes but globally it's working.

more ▼

answered Oct 07 '16 at 10:08 AM

avatar image

Teapot Creation
165 22 33 47

avatar image Andybauer Mar 10 '17 at 09:48 AM

Could you please explain a bit further on how you did it? I'm really interested in this issue as well.

Cheers,

Andy

avatar image Teapot Creation Mar 10 '17 at 11:05 AM

Sure ! I've set up a capsule collision attached to my motion controller (but NOT to the hand mesh). On event tick, I've put a gate as show here : alt text

On collision with the board (tag added to the mesh in scene), I limit the Y axis of the hand mesh so it stays on the surface of the board. Here is the Y axis because the board is facing the world Y axis. As the collision ends, I set the world location of the hand mesh on the motion controller again, with some relative location adjustments. I had to add a "do once" node so that the hand mesh doesn't jitter. This do once is reset each time the hand collides the board.

Hope it's clear enough !

hand_collision.png (162.9 kB)
(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