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"

Collision not working when enemy character is stationary?

Essentially, I have a VR player character and an enemy character. I have successfully implemented a knockback functionality if the player character collides with the enemy character. Now, I am trying to implement a check if the motion controllers hit the enemy. I have the collision settings set up the exact same as the player character and it works if the enemy is moving around. However, if the enemy is standing still, then the collision hit event doesn't fire for the motion controllers. (Running into the enemy with the character body still works though). Does anyone know why this might be happening or how to fix it?

Product Version: UE 4.21
Tags:
more ▼

asked May 28 '19 at 04:15 PM in VR

avatar image

Dtb49
92 4 5 12

avatar image jonathan9232 May 28 '19 at 04:36 PM

Hi Dtb49,

Try enabling CCD (continuous collision dettection) in collision settings. That may help.

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

1 answer: sort voted first

Not quite sure why it works with some actors and not others but, I fixed this by simply adding a check in begin overlap and changed my hand collision to overlap my enemy character. When I detect this I just run the same event I would if I hit the enemy any other way. I think for some reason the Hit event doesn't fire unless the enemy is moving. Maybe my character had enough mass to move the enemy causing it to run a hit event. I'm not sure but, if you're having trouble getting it to fire with Hit just try Overlap instead. Worked for me anyway

more ▼

answered Jun 11 '19 at 03:28 PM

avatar image

Dtb49
92 4 5 12

(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