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"

Rotation component curiosity

So for the sake of everything lets say I've modeled a windmill, and the fan part is a totally separate mesh from the supports, instead of making an animation etc for the blades rotation. I have build the windmill as a whole actor fitting the parts together but the rotation movement component affects the entire blueprint, is there any way to affect only a select few meshes out of your blueprint.

Product Version: Not Selected
more ▼

asked Dec 02 '14 at 03:58 AM in Blueprint Scripting

avatar image

95 14 21 29

avatar image Invius Mar 25 '15 at 08:33 PM

I have the same problem, can anyone help?

avatar image alperenakyuz Mar 25 '15 at 08:58 PM

There shouldn't be a movement component unless it's parent class is a character. Create one based on "Actor". What you attempt is very easy to achieve in the event tick by adding relative rotation to any specific component you want. I'm sure you would figure it out quickly.

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

1 answer: sort voted first

The purpose of that rotation component isn't exactly to use it for what is mentioned above (constant angular motion like helicopter or windmill blades). It's used as an optimization to quickly find the coordinate frame of the blueprint to make some rotation operations go a little smoother.

[Simple example - say you're rotated at 355 degrees in Yaw and then rotate 10 degrees more in either direction. You would basically wind up at either 5 degrees or 345 degrees, right. The problem is that both of these angles are less than 355 so it gets confusing trying to do certain math checks. Think of this component as a giant steering wheel attached to the whole pawn making it easier to turn the whole thing in 3d space without complicated math.]

What you're trying to do sounds more like what you'd do in UDK with an InterpActor in a PHYS_Rotating state, with a constant angular velocity. For that - just do the rotation straight on the blueprint. Couldn't be a simpler instruction set:

This simply adds 5 degrees of roll (relative to the current orientation of the blade) every frame on its Tick function. Change the 5 to adjust the speed. Put it in another field to change the axis of rotation. Easy right.

alt text

more ▼

answered Mar 25 '15 at 09:00 PM

avatar image

690 36 35 74

avatar image Invius Mar 25 '15 at 10:02 PM

It works great for roll, yaw, but pitch, it only does one spin, why?

avatar image 1l2Hawk Mar 26 '15 at 06:10 AM

Works fine here. Double check that you are Adding rotation and not Setting it? Check for any unusual collision issues in your scene?

(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