Hello.
I’m trying to set a collision box extent equal to the static mesh component bounds, using the GetComponentBounds blueprint node on the StaticMesh component. However, I seem to have hit an issue that I don’t quite understand. If you inspect the first image, I’m simply taking the StaticMesh component bounds, and pluggin them into the variables of the CollisionBox extent (no need for me to split the struct, but you get the point). I’ve lifted up the collision box on the Z-axis so we can actaully see it, and it wont be unterneath my StaticMesh component. If you look at image number 2, you can see the size of the collision box (please note that it’s not further away, is directly 100 units above the StaticMesh component. This seems a bit odd for me, as I set the CollisionBox extent to be the same size as the StaticMesh component bounds.
I’ve played around with the component bounds for a while and discovered that if I were to set the CollisionBox extent on the X-axis to the component bounds X-axis times 10 (x*10) the size fits perfectly. You can see an example on image 3 and 4.
I was hoping that someone could tell me what’s going on here, and why I need to muliplæy the StaticMesh components bound by 10 in order to get the CollisionBox extent to the correct size?