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 grabbed object relative to player

Hello. I would like to have possibility to rotate grabbed objects by mouse wheel like on this video: https://www.youtube.com/watch?v=5w9wD1D0ALQ&feature=youtu.be

I already can grab my object, and it is allways faced to player, which is good. Everything went well, but I tried to make those rotations, and it just don't work for me. Any hints, or maybe tutorials on how to do this? Thanks!

Here is a part of my blueprint where I grab this objectalt text

Product Version: UE 4.20
bp.jpg (491.1 kB)
more ▼

asked Aug 29 '18 at 05:55 PM in Blueprint Scripting

avatar image

25 2 2 7

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I found solution by myself. It was more like by trial and error, and accident, but I did this. The solution may seem simple. I just use two scenes to handle "Physics handle". One for location and rotation of held object and second one for rotation of first scene in one axis. The one for rotation of first scene is a "parent" for the one that actually hold an object. Both scenes must be at the same location! I dont really know how to explain it, but I hope it will save some time for those who are looking for this. Here's my blueprint.alt text

In this case, object will rotate around point where line trace hit.

Cubes are just my references to know what scene is what, but they do nothing and can be removed. I know my blueprint may seem like a mess, but I am new at Unreal Engine. It is also possible that there are much easier ways to do this, of course.

bp.jpg (481.6 kB)
more ▼

answered Sep 02 '18 at 01:53 PM

avatar image

25 2 2 7

(comments are locked)
10|2000 characters needed characters left

alt text

You can try something like this.

answer.jpg (103.3 kB)
more ▼

answered Aug 29 '18 at 07:22 PM

avatar image

1 1 3

avatar image Actuss Aug 29 '18 at 09:16 PM

Thank you for your answer. But sadly it don't work in this case. Object "tries" to rotate, but i think because of this (selected on screenshot) part, it gets back on its earlier position when I stop rotating it. Second thing is that it tries to rotate around it's own axis, and I need it to be more like on this video. alt text

bp.jpg (279.8 kB)
(comments are locked)
10|2000 characters needed characters left
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