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"

Mirroring location and rotation relative to HMD

Hello, I am trying to mirror the location of an object attached to the VR pawn to the opposite site. So say, the object is moving up and down, or from side to side, to the left of the player, it should do the exact same just mirrored on the right. What i have done is multiply the Y-location by -1 and similarly for the X and Z rotation. This works exactly as intended as long as the player is facing straight forward, or straight backwards. However as the player turn to the side, the object will be on the back of the player, (which makes sense because it is the opposite of the placement), however i would really like it to keep being visible to the player when facing the side. I have tried a zillion different things, but haven't found a solution that works. So does anyone have a good suggestion for how to accomplished this? i'm thinking i should somehow use the position (or forward direction) of the HMD to calculate the location and rotation from, however i havent figured out how to set that up.

I'm really hoping someone can help me a little on my way :)

As my contract doesnt allow me to post the exact code, i've made an exemplifictation of what i have: alt text

Product Version: UE 4.20
Tags:
examplecode.png (222.4 kB)
more ▼

asked Sep 26 '18 at 04:09 PM in Blueprint Scripting

avatar image

Silvertabby
1

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

0 answers: sort voted first
Be the first one to answer this question
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