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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Rotate vector around axis only works on Y axis.

When using the RotateVectorAroundAxis, it only works on one axis. My goal is to make a planet orbit around a sun, however when I simulate the planets clips into the sun and past it, and comes back, in a loop. So it only moves on the Y axis. On the In Vect I have inputted the starting location of the planet, when I enter the X and Z, it just moves slightly diagonally/pitched up, but still goes in and out.

Basically, it's not going around the axis, it's going in and out of it. alt text

Product Version: UE 4.15
Tags:
more ▼

asked Mar 02 '17 at 08:02 AM in Blueprint Scripting

avatar image

Alaanor
46 1 5 8

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

2 answers: sort voted first

Nevermind, I fixed it; Input a number for the "Axis". If the sun is at 0,0,0, add 1000 or something relative to the number of the "In Vect" to X,Y,Z depending on if you want it to rotate horizontally etc.

EDIT: Just input the same number on In Vect into one of the inputs of Axis.

more ▼

answered Mar 02 '17 at 08:11 AM

avatar image

Alaanor
46 1 5 8

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

Hello, I'd be curious to know how you fixed it. I don't get this node, I really don't understand how it works. I want "actor1" (-2 x, -0,5 y ) to rotate around "actor2" (-3 x, -4,5 y ) by -30 degrees. How should I use the "RotateVectorAroundAxis" node? Which values should I enter into each inputs? tks, Max.

more ▼

answered May 05 '17 at 09:29 PM

avatar image

Max974
26 1 4 8

avatar image Alaanor May 06 '17 at 01:47 AM

img I removed the Get World Location node and input the same value from Y to Z.

(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