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"

Making a Hammer with Collisions

I have a character here with a hammer in a socket.

alt text

I want to make it so that the hammer has no collisions unless he is in a swinging state. When he swings, I want the hammer to detect the surface normal of the first surface that it collides with. I'm not sure where to start with this so any help would be greatly appreciated! I'm working with blueprints.

Product Version: UE 4.8
hammerguy.png (335.0 kB)
more ▼

asked Aug 02 '15 at 06:49 PM in Blueprint Scripting

avatar image

6 1 1 2

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

1 answer: sort voted first

You can set an objects collision via node. Just have it so when the player hits the swing button, it Set Collison on the hammer. To know when the swing animation is done you can setup a notify in your montage that will trigger another event that can Set the collision to None. Only thing with setting collision from nodes is you can't set the "custom" collision so choose one that suits your needs. You can use a Line Trace by Channel or Line trace by Object and it will return the Hit Actor. If the Actor being hit has its collision set to Block (on the object type of the hammer) then the hammer shouldn't pass through. Hope this helps

more ▼

answered Aug 02 '15 at 06:55 PM

avatar image

1.4k 70 29 92

avatar image Seba0702 Aug 02 '15 at 08:44 PM

Hey jtsmith, i wrote to you on youre youtube channel, under the debate section. I don't know how else to reach out and chat with you, so i wrote here. :D

avatar image jtsmith Aug 03 '15 at 06:52 AM

Send me a private message on YouTube.

(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