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"

Why can't projectiles generate collision or overlap events against small sprites?

I have small 50px * 50px sized physics enabled sprites in my level, which have collision with the character and other actors, sprites, but the projectile does not collide with the sprites, nor generates overlap events. The projectile does however work with larger sized sprites, so it seems to me the projectile's collision does not work when it "meets" small sprites.

EDIT: I dont think its a problem with the settings as the collision works with the larger scaled version of the sprite while it does not with the small version. Imo, scaling should not change or affect the collision settings, right?

Product Version: UE 4.16
Tags:
more ▼

asked Jul 16 '17 at 08:48 PM in Blueprint Scripting

avatar image

Croatoan
1 1 3 7

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

1 answer: sort voted first

Thats is most likely not a Problem with the Projectile more a Problem of not setting the Collision Settings properly.

Heres some Blog Post to help you out since I can not without knowing your Settings etc.

https://www.unrealengine.com/en-US/blog/collision-filtering

more ▼

answered Jul 16 '17 at 10:21 PM

avatar image

Nachtmahr
7k 143 28 172

avatar image Croatoan Jul 16 '17 at 10:35 PM

Thanks, but I dont think thats the issue here.

The very same objects have collision when the object is scaled to large, but there is no collision when its size (its dimensions) is small. Scaling should not change the collision settings , right?

I tried custom and preset settings too, no changes. Curently blockall on both the projectile and the sprite I am trying to hit

avatar image Nachtmahr Jul 16 '17 at 10:37 PM

Another Question than does it Happen 100% of the time that they are ignored? Or just sometimes?

avatar image Croatoan Jul 16 '17 at 10:38 PM

It happens everytime

avatar image Nachtmahr Jul 16 '17 at 10:51 PM

Let me quickly setup a 2D Project and try out. Any steps I might want to take to reproduce as closly as yours?

avatar image Nachtmahr Jul 16 '17 at 11:11 PM

Tried to reproduce. No Success. Everything works fine =/

avatar image Nachtmahr Jul 16 '17 at 10:58 PM

Also a Question on the side. You did not accidently Offset your Sprite and if you Scale it uniformly it scales also into the Background by any Chance? So Bullets flys by

avatar image Croatoan Jul 17 '17 at 07:06 AM

Well, I think nothing special in my project. I have a pawn with a sprite, a collision box, and a floating movement component, and it spawns a projectile, which is just another simple sprite, with a collision box, and a projectile movement component.

Then if I scale down for example the ledges form the example level, the projectile will ignore it, fly through it, but hit the regular size ledge behind it.

everything is at the same offset. I will check if the projectile is spawning with the correct transform.

avatar image Croatoan Jul 17 '17 at 07:33 AM

Ok, problem solved, thanks for your help. Creating a fresh project solved the problem. No idea what was wrong..

(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