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"

Rotating an object at a point via Motion Controllers

Hi all,

I am attempting to create a blueprint script that will rotate a sphere around a point in any direction so that it's rotation follows the motion controller that controls the rotation.

Here's what I have, but what I'm seeing so far is that the sphere rotates wildly when set planet rotation first starts firing. It smooths out somewhat if the controller is moved to an arbitrary location away from the start point, but is still unpredictable. This event is being fired on tick, as long as a grip button on the controller is being held down. When the button is released, we reset StartCtrlPosition and no longer fire SetPlanetRotation until the button is pressed again.

alt text

alt text

Product Version: UE 4.16
Tags:
screenshot1.png (311.2 kB)
screenshot2.png (223.7 kB)
more ▼

asked Aug 09 '17 at 09:01 AM in Blueprint Scripting

avatar image

tp.Jon
6 1 1 4

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

1 answer: sort voted first

Here's what I ended up with that works, for the most part. I needed to account for even the smallest movement of the controllers having potentially a huge impact on planet rotation. This graph is also very much cleaned up.

alt text

alt text

more ▼

answered Aug 10 '17 at 02:23 AM

avatar image

tp.Jon
6 1 1 4

(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