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"

Local Rotation by Axis with Respect to Slant

Short Version : I'm trying to rotate an object from rotation A to B and back around it's Y axis, while respecting that the object is slightly slanted. The only way I've gotten it to work so far is using AddLocalRotation, which has issues of its own. Is there a way to calculate a target rotation with respect to an offset so I can use MoveComponentTo or SetRelativeRotation correctly?

More Info : I'm making a customize-able pinball game. The field is at a slight slant, allowing the ball to roll downhill realistically. Because of the slant, most of the Rotation nodes for the flippers doesn't respect the slant when rotating. AddLocalRotation works, but doesn't support Sweep yet, and causes issues with using the flippers when the speed is realistic.

Ideally, I could use MoveComponentTo or SetRelativeRotation, but I must be calculating the target rotation wrong. If someone could assist me with how you'd calculate the target rotation of an object around it's local axis in blueprint, that would be much appreciated. I'm going to try another option in the meantime, attaching it to another object and tilting that object to see if RelativeRotation methods work that way, but knowing how to do this without needing to parent the object would be extremely useful.

Product Version: UE 4.15
more ▼

asked May 13 '17 at 11:27 PM in Blueprint Scripting

avatar image

17 4 6 8

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

0 answers: sort voted first
Be the first one to answer this question
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