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"

Difference between Box Extent and Scale in Box Collider

While following this tutorial, I realized that the coin that was supposed to spawn in a random point in a box collider was just spawning in a small box around its center. I found this was because its Box Extent, which I used for generating these random points, did not scale with the collider. To solve it in code, I used the node "Get Scaled Box Extent".

However, after searching around I couldn't find the explanation as to why Box Extent didn't scale with the Box Collider's Transform Scale, and what was the difference between the two. If you could tell me, I would appreciate it.

PS: Is the Blueprint Scripting the correct section to post this in?

Product Version: UE 4.15
more ▼

asked Jun 08 '17 at 06:29 AM in Blueprint Scripting

avatar image

1 1 2 2

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

1 answer: sort voted first

The box extent is the real size in unreal units of your box. For instance a new box will always have a 100*100*100 size. The scale however is a multiplication of this size by some tri-dimensional factor. This can be useful when you want a single object to have multiple iteration existing with different sizes but it's not super practical. I would recommend to always keep your scaling to 1 (base size) unless you have to change it for technical purpose. In case you want to have several iterations of a single object with different sizes I'd also recommend that you put in an editable vector variable that you use to set the extent of your box via the construction script.

I hope this answer can help you solve your issues.

Ps: if you work in code I would advise that you post with the c++ tag instead of blueprint. However if you work with both blueprints and code just post in any category you want depending of what you think is the most relevant for your question.

more ▼

answered Jun 08 '17 at 08:20 AM

avatar image

36 1 2 1

(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