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 object
asked Aug 29 '18 at 05:55 PM in Blueprint Scripting
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.
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.
answered Sep 02 '18 at 01:53 PM
You can try something like this.
answered Aug 29 '18 at 07:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here