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 point this compass to north?

Hey Guys,

I made this compass and i want to use it in game, but I can't figure out how to point the pointer to north (X axes). It's most likely a very easy solution, but that solution is very welcome :).

alt text

I have a Blueprint Class which has all the components, and i need to rotate the pointer on the Yaw.

alt text

Since I'm here can someone tell me how to get the ring on the top of the compass to react to physics.

Thanks for your time :)

Product Version: UE 4.8
Tags:
compass_01.png (377.2 kB)
compass_02.png (80.6 kB)
more ▼

asked Aug 21 '15 at 11:16 AM in Blueprint Scripting

avatar image

Bassline
1 1 1 1

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

2 answers: sort voted first

1) Get Actor Rotation and use the "Y" value and plug it directly into your pointer rotation.

more ▼

answered Aug 21 '15 at 11:36 AM

avatar image

Devero
2.3k 114 62 234

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

I think you have to solve a two planes intersection problem ( the compass is the first plane, and the Axis the other one) the intersecting line gives you the absolute rotation of the pointer.

https://www.youtube.com/watch?v=o7CfCDkRwfY

Think a few about it, if you need more help I will try to sholve it in UE.

Good luck.

more ▼

answered Aug 21 '15 at 11:33 AM

avatar image

darorck
121 8 10 13

(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