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"

Character momvemnt freezes at some rotations

My character stops moving when any of the rotations got into a negative, how do i do it so the character will move in these directions?

thanks

alt text

alt text

Product Version: UE 4.9
Tags:
untitled-2.png (463.8 kB)
untitled-3.png (508.3 kB)
more ▼

asked Nov 18 '15 at 05:27 PM in Blueprint Scripting

avatar image

Mitch_
21 1 1

avatar image Adam Davis STAFF Nov 18 '15 at 06:55 PM

Hi Mitch_,

I believe the problem you are experiencing is caused by your clamps. Set the minimum value to -1.0 instead of 0.0 and see if that addresses the error in question.

avatar image Mitch_ Nov 18 '15 at 07:26 PM

Hi Adam, now it travels backwards in the positive axis when the input is in the negatives.

avatar image Adam Davis STAFF Nov 18 '15 at 08:11 PM

What is the end goal you are attempting to accomplish? I was able to get a smooth turn from a top down shooter style game by adding an rinterp between the actors current rotation and the clamped vector (you were correct to use 0 and 1 after some testing) multiplied by movement speed. In the case of what I did, the below screenshot shows what specific steps I took, perhaps you can use it to modify what you are working with?

alt text

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

2 answers: sort voted first

I am trying to make a sailing ship controller, I tried to use the twin stick controller but I could not get it to act how I wanted to. I did what you said but the character would not move anywhere. I have managed to do it now by mixing what you suggested with what I had already done.

It seems to be working well.

alt text

untitled-2.png (495.9 kB)
more ▼

answered Nov 18 '15 at 11:46 PM

avatar image

Mitch_
21 1 1

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

I can't perceive the purpose of your rotating. Also I can't find that you're breaking the object's rotation's value from the original rotation vector. It may probably different type of coding habit or my lack of understanding of your purpose.

then as I understand, I'd use the unit vector for direction from the input, then lookat the position no matter it's negative or not.

Sorry that's how I understood your question, and if you add some more detail of your situation, I'd answer more! Good luck!

more ▼

answered Nov 18 '15 at 09:00 PM

avatar image

MeepMeep
74 2 4 12

(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