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"

Problem with "Calculate Direction" node

So after a long journey figuring out how to drive a "direction" variable for my character, I stumbled upon the "Calculate Direction" node, which did exactly what I was trying to do, calculating the change in degrees my character turned from point A to point B, and it works great, except for one thing, when my character is not moving, the node is outputting a value of 90, and I can't for the life of me figure out why. When I'm moving forward and not rotating, it outputs 0, so that works, but standing still, it outputs 90. I started out with my own project, then to troubleshoot, I created a new project using the Third Person Blueprint template, where the only thing I did was hook up the calculate direction node to a "Get Velocity" node and a "Get Actor Rotation" node, and still the thing is outputting 90. The node is supposed to output a value from -180 to 180 and one would assume if the character is not moving at all, the output should be 0, am I missing something?

Product Version: Not Selected
more ▼

asked Jun 12 '14 at 06:49 PM in Blueprint Scripting

avatar image

6 2 6 6

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

1 answer: sort voted first

I got this node working properly for my usage and wrote a write-up on the forums: https://forums.unrealengine.com/showthread.php?66381-quot-Calculate-Direction-quot-node-for-blendspace-direction

more ▼

answered Apr 16 '15 at 02:32 AM

avatar image

103 3 3 10

(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