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"

Static Mesh collision not scaling.

Hello!

I am currently setting the scale on a Static Mesh component. It scales the visuals of the mesh properly, but not the collision. GetOverlapingActors will return the actors within the space of the mesh's original scale, but nothing outside of that even if it is physically in the mesh. Scaling the mesh at runtime also has no affect on the collision's size. For the case I am using the engine's basic Sphere mesh.

Thanks.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 22 '16 at 11:43 PM in Blueprint Scripting

avatar image

Hildogen
48 3 6 9

avatar image Steve Hardister ♦♦ STAFF Aug 23 '16 at 09:20 PM

Hi Hildogen,

Below are illustrated the steps I've taken to try and reproduce this issue in UE4.12.5:

  1. Added basic sphere to a volume set up to react on player overlap

  2. Image two shows the sphere at normal size placed in the level

  3. Image three shows player entering field where sphere scales non-uniformly, yet maintains its collision:

*If this does not accurately represent how to recreate the issue, please proved detailed repro steps so that we can reproduce the issue here (Images not necessary) -Steve H.

Sphere3

Sphere2

Sphere1

sphere3.png (228.6 kB)
sphere1.png (731.1 kB)
spere2.png (599.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Hildogen,

Since we have not heard back from you in a few days we are marking this post "resolved" for tracking purposes. However, if you are still having a problem with collision not scaling with the object when triggered through a blueprint, please respond with what is not accurately repror'd in the steps above and provide clear steps on how to recreate the issue here.

Thanks,

Steve Hardister

more ▼

answered Aug 29 '16 at 01:58 PM

avatar image Hildogen Aug 29 '16 at 10:39 PM

Hi Steve,

After some more debugging it looks like the problem I'm having is due to scaling the object non-uniformy during runtime.

If the initial setup is non-uniform, but the scaling at run time (during tick) IS uniform there are no problems. But if, say, I only scale X and Y then the collision will not match the visual of the mesh.

Thanks!

avatar image Steve Hardister ♦♦ STAFF Aug 30 '16 at 07:03 PM

Because not everyone uses the "term" collision the same way, I'd like to make sure we are on the same page... When you're referring to collision are you speaking in terms of blocking other actors from passing through the mesh or creating overlap events like the following example, where when the mesh(cube) scales up to intersect with the player so the print string displays: "ThirdPersonCharacter?"

alt text

collision2.png (2.0 kB)
(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