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"

Center view on closest axis after button released

Hello has all, Here is I would want to be able to move my camera with the right button pressed in fps view ! For now I use "setInputModeGameAndUi", but I think later with the inventory, this will cause problems .... Only I manage my movements with the directions (0,90,180,360 ) and I would like to release the right button by managing the camera towards the closest axis (center with the axis Y)... For those who know, like Legend of Grimrock ;) Thanks... or not ;)

Product Version: UE 4.12
more ▼

asked Aug 06 '16 at 06:33 AM in Blueprint Scripting

avatar image

0 2 3 3

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

1 answer: sort voted first

You can use modulo!

Try this:

 int degreesOffset = actualDegrees%90;
     If(degreesOfset > 45)
         ActualDegrees += degreesOffset;
         ActualDegrees -= degreesOffset;

more ▼

answered Aug 06 '16 at 06:56 AM

avatar image

2.7k 107 35 180

avatar image bobchocolat Aug 06 '16 at 03:06 PM

Thanks, but it's to easy for my ;) I don't have another explications for make that...

avatar image NoobsDeSroobs Aug 06 '16 at 03:11 PM

WHY is it too easy for your what? I find it very hard to understand your English so I might have misunderstood something.

avatar image bobchocolat Aug 06 '16 at 03:56 PM

Sorry for my very bad English ... googletrad :( Humour is too hard for me ... I'm a noob;) I do a little trick that works is ready but I can not seem to have the last rotation ??? I am now looking to do a range of rotation vector ... But I do not see how at this timealt text

avatar image NoobsDeSroobs Aug 06 '16 at 06:13 PM

Change this answer to a comment please. Just make it a comment of my answer or something. Click the down arrow and select convert to comment.

Anyways, the reason you dont get the last rotation is because you will never get to the last branch. Change the > node to a < node and you are fine. They should ALL be < nodes.

avatar image bobchocolat Aug 06 '16 at 09:40 PM

Precisely at the beginning I had put that < but it was not working ... I thought wrong. I just figured with the print string, after + 180°, EU4 exchange has negative values (-180 to 0) ... Even reversing the values of > it does not matter ... I am disappointed and I have no ideas yet :( Thanks Ps:Not arrow for change your answer to comm... is not a comm now ?

avatar image NoobsDeSroobs Aug 07 '16 at 11:10 AM

Under your answer post it says "more". That arrow should have it.

avatar image bobchocolat Aug 07 '16 at 08:24 AM

Yessss, it's working fine... he had to start from the smallest to largest (-180 to +180) I have problem with lerp.... Please another question, how to disable drag view with the left click ? Thanksalt text

avatar image NoobsDeSroobs Aug 07 '16 at 11:08 AM

If it is working fine the please accept my answer and post a new question as the second question is not related. It is cleaner that way. I will answer in your new question.

avatar image bobchocolat Aug 07 '16 at 12:26 PM

For me it will be solved when the Lerp work... The lerp is an integral part of the movement .... Ok, left click it will be another question... Thanks

avatar image bobchocolat Aug 07 '16 at 02:33 PM

After one day (it's shame;)), it's work fully... picture for the followingalt text...

avatar image bobchocolat Aug 08 '16 at 09:40 AM

Не buffoon, you're not helping, so putting something out of reach for a noob, they say to you, you do not try to explain anything, and after you ask to ensure that valid the issue by promising to answer to another, just to raise your Karma ... and after you're disgusted and you vote - in my own answer ... you did not do anything to me help ... You're a big badger !!!

avatar image bobchocolat Aug 08 '16 at 01:35 PM

Thank for your answer, I do not understand everything, on the contrary, I am a [redacted] noob ;). I understand the general idea, but ...

avatar image Matthew J Aug 08 '16 at 01:37 PM

Hello bobchocolat,

I'm glad to hear that your issue has been resolved. In the future, please try to be more accepting of help and try asking others to explain in clearer terms if there are problems understanding, instead of insulting them. Also please try to avoid using vulgar language.

(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