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"

How to use a box collider to stop raycast (tracing).

Im am part of a group that is making a game where you attack and defend based off of the enemy's animation (if the enemy is doing an attack animation you must defend so that you wont lose damage.) The characters use raycasting (tracing) to apply damage. My question is what settings would I use on the player character's box collider to stop the raycast from hitting the player character? Every settings I have tried still lets the raytrace through the collider and hurt the player.

Product Version: UE 4.7
Tags:
more ▼

asked Aug 29 '15 at 04:04 AM in Blueprint Scripting

avatar image

The1456
1 3 4 3

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

1 answer: sort voted first

You would want to setup a new Object Response Channel then do a trace by Objects with that new Object type selected. Then on all your collusion boxes make sure to have that Object Response Channel set to block. You make new Channels via Edit Menu -> Project Settings -> Collision.

See: https://docs.unrealengine.com/latest/INT/Engine/Physics/Collision/index.html

more ▼

answered Aug 29 '15 at 01:56 PM

avatar image

IanLaBrie
611 21 8 35

avatar image The1456 Aug 30 '15 at 03:41 AM

would it be possible if you showed me in blueprint i have most of it in my game but im stuck with how it is in the blueprint. If you could that would be a major help.

avatar image The1456 Aug 30 '15 at 05:58 AM

Nevermind i got it working! thank you so much ive been struggling with that for a couple days!!!

(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