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"

4.7p5 Paper2DTerrain missing collision pieces

As seen in the picture here, sometimes the "open spline" splines are just missing collision pieces. (Although it looks like some are overlapping near the start, so perhaps they are there, just incorrectly positioned.) Also the height is just a tiny sliver, I'm not sure if this is going to cause issues. Perhaps we need a property to specifying how 'deep' the collision boxes should be, since it already uses the term 'thickness' for how wide across to make each piece.

Lastly, I noticed that if you choose 'close spline' it doesn't even use these edge boxes at all, instead it makes one huge collision bounds spanning the whole thing. It would be nice if we had a choice and could make closed splines still use the ring of boxes like the open splines do. I was using the fact that they were hollow in one of my prototypes.

alt text

Product Version: Not Selected
Tags:
more ▼

asked Feb 04 '15 at 12:50 AM in Bug Reports

avatar image

Furroy
696 26 86 62

avatar image Ben Halliday STAFF Feb 13 '15 at 01:30 AM

Hi Furroy,

I just tested this in 4.7 Preview 7, and I don't get any gaps in the collision on Spline Terrain pieces. Does this still occur for you in Preview 7? Does it happen with every type of sprite, or only your sprites? If you could test it on the Ledge sprite that comes in the default Paper2D project, that would be helpful. Additionally, if you're willing to zip and attach the texture for this sprite, I can test that here as well.

The "depth" of the collision is set with the Collision Offset in the PaperTerrainMaterial Data Asset. I've noticed a bug where this does not update in the level right away, but editing one of the Defaults for the Actor in the level (such as disabling and reenabling GenerateOverlapEvents) will show the change in the Viewport. I'm going to double check and see whether this has already been fixed internally, and if not I'll enter a bug report for it.

I'm not sure what the intention of the developers are with closing the spline and it's resulting collision is. I'll check with the developers and see what they intend to do with it. This is still an experimental feature, so sometimes fixes sneak in as they work on it, but it's not going to be fully functional just yet. Thanks for the feedback, though!

avatar image Furroy Feb 13 '15 at 03:27 AM

Unfortunately preview seven crashes trying to load most of the sprite sheets/flipbooks from my game, so first I have to get over that hurdle. When I get time I'll try to get the terrain stuff going first so I can check it out and let you know how it goes.

avatar image Furroy Feb 13 '15 at 04:11 PM

ok, so I gave up trying to fix my project and made a brand new 2D side scroller project and pulled in just my terrain.

all i'm doing is dropping in a paper2d terrain and dragging the second spline point out a little bit. it leaves missing collisions in the default terrain and my own custom terrain both. it should be really easy for you guys to repro it.

alt text

avatar image Furroy Feb 21 '15 at 04:08 PM

Confirmed this is still an issue in preview 8.

avatar image Ben Halliday STAFF Feb 23 '15 at 08:01 PM

Hey Furroy,

I apologize for the delay. I was in the hospital for the last week, and am only starting to get caught back up today. I will take a look at this today/tomorrow in preview 8 and let you know what I find. Thanks for your patience!

avatar image Furroy Feb 23 '15 at 08:06 PM

No worries. Hope you are feeling better and not snowed in. I just work around whatever issues I find and only report them so you guys can fix before 4.7 goes live.

avatar image Ben Halliday STAFF Mar 01 '15 at 08:40 PM

Okay, so in a new P2D project, I created a new Spline Terrain using the Ledge Sprite. It looks like this:

alt text

Extending the spline length doesn't cause any gaps in collision. Do you have a different setup, or am I misunderstanding how you're setting this up? If not, would you mind zipping and attaching assets with which you experience this issue? Thanks!

avatar image Ben Halliday STAFF Mar 06 '15 at 01:51 AM

Hey Furroy,

I haven't heard back from you in a bit, so I'm resolving this post for tracking purposes. Please let us know if you're still experiencing this issue, and if so please take a look at the questions I asked above. A test asset with which this occurs would be helpful as well. Thanks!

avatar image Furroy Mar 07 '15 at 02:29 PM

Sorry I was away on holiday. I just confirmed I'm getting the same behavior in 4.7.2 I don't know why it doesn't repro for you though. I made a new side scroller project, enabled the experimental spline, dragged one out into the map, rotated it 90deg, and extended out the second spline point.

alt text

paper_spline.png (614.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Furroy,

I'm not sure why it wasn't occurring for me previously, but I clearly see it now when testing in 4.7.2 and our internal build. I've entered a bug report for the developers (UE-11445) and I'll let you know when I see any updates on it. I don't know how quickly they'll get to it (Paper Terrain still being in a highly experimental stage), but I'll see if they think it'll be in time for 4.8. Thanks very much for reporting this!

more ▼

answered Mar 08 '15 at 05:14 PM

avatar image Ben Halliday STAFF May 12 '15 at 05:25 PM

Hey Furroy,

Just wanted to let you know that this has been fixed internally, and should be working in 4.9 once that is released. Thanks again!

(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