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"

Is there a node that allows smooth forward movement without even tick?

So I have this puzzle with the parent component in the center. There is a puzzle piece that rotates around it using rotating component that is adjusting during game-play. What I want to do is be able to push a component of the actor smoothly towards the center (the parent component). Is there a way to do this? "Move Component To" might work but it asks for rotation, and I want rotation independant.alt text

Product Version: UE 4.21
Tags:
more ▼

asked Feb 17 '19 at 07:16 PM in Blueprint Scripting

avatar image

xGameSlave
11 4 7

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

3 answers: sort voted first

I actually figure it out. I could have used a Timeline, but Instead I used "Move Component To" and plugged in the rotation value as a variable. alt text

screenshot-535.png (491.4 kB)
more ▼

answered Feb 18 '19 at 02:44 PM

avatar image

xGameSlave
11 4 7

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

One possible way you could achieve this without the a tick event is by using a timeline. You would have to calculate the start and the end location of the component to smoothly interpolate between the two values.

more ▼

answered Feb 18 '19 at 03:49 AM

avatar image

Alwin
1 2

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

You can Find Look at Rotation to get the direction from the actor to the center, Get Forward Vector from that and use it as the direction for your movement.

For the movement itself a Timeline would work just fine, as @Alwin mentioned. Save the Actor's Current Location to a variable, make a second variable and make its value = (Current Location + (Forward Vector * Distance)). The distance in this case will be the difference between the radii (radiuses?) of the circles. Use these two variable as A and B respectively with Lerp or Ease.

Edit: you should probably split the Find Look at Rotation result and make a new rotator with X and Y, leaving Z = 0. And make sure to normalize the Forward Vector thereafter.

more ▼

answered Feb 18 '19 at 07:59 AM

avatar image

Tuerer
1.8k 12 7 9

(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