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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can I rotate a object, when grabbed? (Physics Handle)

Hello, basically I'm creating a object grabbing system for my game, I had no idea how to do something like this so I've exactly replicate this blueprint on this video tutorial;


Surprisingly everything worked and is working to this moment, but one thing that I need to be able to do is to rotate the grabbed object by pressing/holding a button, sadly he doesn't show you how to do that. Here is my question; how would I do something like that? what nodes would I have to add? Thanks. :)

Product Version: UE 4.10
more ▼

asked Jan 10 '16 at 07:31 PM in Using UE4

avatar image

3 3 7 7

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

1 answer: sort voted first

Hi Sebapler

Ok man, I recreate the Tesla Tutorial (Tesla´s Tuts are always amazing) to be easier for you to understand what I did.

It is simple, actually

After the video tutorial, just create the following Blueprint:alt text

Put it after the Tick Event with the branch, it will take your mouse postion, create a rotation - 5000 (I needed to put this high amount to have a better looking when rotating the object, if you want the object to rotate slowly, just increase this number a lot, like 6000, 7000 and so on.

Here is the result: https://www.youtube.com/watch?v=JMCq-7C6TbY

Hope you can succeed! Good Luck!

more ▼

answered Jan 11 '16 at 12:29 PM

avatar image

1.4k 54 19 60

avatar image Sebapler Jan 11 '16 at 08:00 PM

Hello, thank you for your help :) Why doesn't everything just work! :) I've replicated your script (as shown) but it looks like something isn't working, it's probably me (messed something up again) for some reason when I press (alt) it doesn't look the same as on your video, and I don't know what this is causing , maybe you know the fix for this, and sometimes (most of the time) when I grab a object it just starts rotating without me pressing anything, sometimes slow, sometimes faster and sometimes when I press (alt) they also start rotating (very fast) I would really appreciate if you would help to fix this :)

Oh yeah and I've also created a short video this time :)


avatar image FilipeTessaro Jan 11 '16 at 08:30 PM

Oh man! Sorry, I forgot to show you this BP:

alt text

forgot it sorry.png (436.6 kB)
avatar image Sebapler Jan 11 '16 at 08:59 PM

Idk, still the same

avatar image FilipeTessaro Jan 11 '16 at 09:11 PM

if you replicated the second bluprint in your "Mouse Input" set up, there is no reason to be different than mine... check it again pls and if possible, show me another video, thanks

avatar image FilipeTessaro Jan 20 '16 at 09:24 PM

Still there my friend? Not hearing from you anymore!

avatar image Sebapler Jan 23 '16 at 07:05 PM

Oww, Hello!, I've left this for now (I've realized that is isn't what I need) Now I need some help with creating a basic stamina system for example when running it takes away some % of the stamina, and when not running anymore it regenerates. Any ideas how to do so?

avatar image FilipeTessaro Jan 23 '16 at 08:41 PM


It is not so hard to do, but, it is more simple for you if you follow this tutorial from Unreal Staff:

It will teach you more than that:


avatar image Sebapler Jan 23 '16 at 08:58 PM

Oh yeah, I've seen this tutorial already, (I've learned a lot from it) to be honest that is the exactly same tutorial that I used to create my stamina bar. I also have a inventory (fully working) but I didn't use this one, it's a bit too basic, I've used a different tutorial for that (surprisingly, everything seems to work fine) I used this:


I need a more advanced stamina system for example, when you run it takes away some percent of your stamina (from a bar, like in the tutorial) and when you stop running, it regenerates back to 100%

It's nice to be talking with you again :)

avatar image FilipeTessaro Jan 23 '16 at 09:05 PM

run you mean sprint?

Using the same turorial ,you can drag from your stamina logic and get the Stamina variable minus a float or integer value than set it to be new value

To recover, you can create a logic from your Event tick. let´s supose that your stamina default value is 10.

from the event tick, if the stamina value is less than 10, you get the stamina value add a float/integer value to it set the new value into the variable. Note that you have to create a timer to avoid the event tick update every frame, you can create a timer by 1 or 2 seconds, for example

With that logic, the stamina will increase only if it is less than 10. You can also set the Stamina to 10, if it becomes more that 10

avatar image Sebapler Jan 23 '16 at 09:10 PM

Sorry, I'm still a noob in this types of things :D, can you create something like this in a blueprint and send me a pic? :D

I would really appreciate it.

avatar image FilipeTessaro Jan 23 '16 at 09:32 PM

haha, check this out and try at your end:

alt text

alt text

pic1.png (386.6 kB)
pic2.png (306.8 kB)
avatar image duythvn Feb 18 '16 at 09:01 PM

hey FilipeTessaro I was looking into creating 2 different interactions - pickup / release when P key is pressed - rotate object when R key is hold And i ran into your solution ( looks like this solution is to tackle another scenario but I was hoping to replicate your blueprints at least ) However, I'm not 100% sure if I got the blueprints correctly. Can you help me out ( Tesla's pickup/release part is already done and it works fine)

Thanks !!

alt text

blueprint.png (542.2 kB)
avatar image FilipeTessaro Feb 18 '16 at 09:37 PM


ok, but your BP seems ok, is it not working at all?

I can upload my project with the blueprint so you guys can study from it. What do you think?

avatar image duythvn Feb 19 '16 at 11:01 PM

that would be great !!! little things like this somehow help us (at least me) know more about blueprints so yeah please do :)

ps: also, what do you think about having 2 different buttons to handle Rotate Or Move... the events still need to be linked to the same Event Tick do they?

avatar image FilipeTessaro Feb 19 '16 at 11:08 PM

I will upload it for you.

PSS: Yes, it has, because the position and rotation need to be updated everytime, if not, it will have a stuttering effect.

I will upload and post the link here very soon

avatar image FilipeTessaro Feb 19 '16 at 11:42 PM


Here is the link for download: https://drive.google.com/open?id=0By56GzMMq0nYNW4wbDRtcTV5enc

I also made some comments in the blueprint to make it easier to understand.

avatar image duythvn Feb 21 '16 at 02:30 AM

wow 97mb thanks for taking the time to upload man, really appreciate!

(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