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"

Issues with collision not reporting hits.

I'm having a few issues with getting collision to work correctly in my project, as follows:

Firstly, I have a moving ball that the player can "hit" by using the interact key. This carries out a sphere trace, which casts to the ball, and modifies the ball's direction vector. The ball currently has a sphere static mesh, and a sphere collision component added with default settings, and it works. My question is - why do I need both the static mesh and the sphere collision components? The collision presets are set to block all on the mesh, and overlap all on the sphere collision. Removing either of these components breaks my system.

My second issue is related to hit response. I want to create a mirroring effect when the ball hits certain surfaces. I set up a simple blueprint with a cube static mesh, with the collision settings on the block all preset. I am able to generate hit events when I walk into it with my player character, but my ball always flies straight through. Any ideas?

I have included screenshots of all three collision settings below:

Sphere Collision: alt text

Static Mesh: alt text

Mirror: alt text

My understanding is that by having both the ball and the mirror set to generate hit events, it should work right? What am I missing? I have tested both the ball and the mirror, and they both ARE generating hit events when colliding with my character, but not each other...

Product Version: UE 4.13
Tags:
collision.jpg (43.8 kB)
mesh.jpg (32.9 kB)
mirror.jpg (33.8 kB)
more ▼

asked Nov 17 '16 at 04:32 AM in Blueprint Scripting

avatar image

Calamity_Jones
21 2 3

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

0 answers: sort voted first
Be the first one to answer this question
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