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"

Object facing the direction of the player once grabbed.

Hi guys, I'm not sure whether this has been solved before but i haven't been able to find the solution. I had followed the physics handle blueprint in the Content Examples level and i successfully have that implemented, but I've noticed that in both the example as well as my own game the object that is held will always face the direction that it was initially grabbed which results in the object looking like it rotates when you're carrying it around.

I did manage the get the object to face where the players camera is facing upon being grabbed but i want it to update constantly as the player moves about.

Any help would be greatly appreciated.

Product Version: Not Selected
Tags:
more ▼

asked Aug 21 '14 at 12:24 PM in Blueprint Scripting

avatar image

LukePGM
41 7 9 9

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

1 answer: sort voted first

Hi LukePGM,

If you haven't figured this out yet, here is the solution I came up with. It still has an issue where the object that is picked up will need to orient it's rotation to the player. I am trying to find a workaround for that out now. It may also be directly relate to your your third issue.

https://answers.unrealengine.com/questions/90698/object-resetting-rotation-after-i-drop-it.html

I looked through your blueprints from the question linked below. Try changing the SetTargetLocation in the "Update physics handle position" section to a SetTargetLocation&Rotation. Then plug in a GetControlRotation into the rotation slot.

https://answers.unrealengine.com/questions/89560/applying-physics-handle-sends-surrounding-objects.html

TJ

more ▼

answered Aug 29 '14 at 05:31 PM

avatar image

TJ V ♦♦ STAFF
41k 1009 183 494

avatar image LukePGM Aug 29 '14 at 09:47 PM

Hi TJ, I've tried what you've said and its working perfectly. I have also managed to get the object to face the direction of the player when grabbed and constantly update the rotation through making a new function to update its rotation relative to the player and then have a looping timer call the function when the object is grabbed and clear the timer when dropped. All works great, Thanks so much for your help over the last couple of days.

avatar image LukePGM Aug 29 '14 at 09:49 PM

Grabbing an object still pushes other object away though when its grabbed but ill have to look into fixing that issue when i'm back on UE4.

avatar image Slydex44 Oct 29 '15 at 01:50 PM

Hi. I'm also trying to save grabbed object it's rotation but rotate it with camera and have no idea how to achieve this. Can you tell how to do it or show your blueprint? If you still have a problem about pushing object once picked, the solution is to make handle position on that place where you pick object. Use "get distance to" picked object and make it variable of "handle distance".

(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