Announcement
Collapse
No announcement yet.
Get Extents of a Static Mesh
Collapse
X

Hrm, I have an issue with this.
If my object is at 0, 0, 0. And it's scale is 9, 9, 9. And it is a cube of 1cm:
Get Local Bounds min will return 0.5, 0.5, 0
Get Local Bounds max will return 0.5, 0.5, 1
Then if we multiply the min/max by the scale of 9 then we get:
Min: 4.5, 4.5, 0
Max: 4.5, 4.5, 9
And that is fine, by multiplying by the scale we compensate for the fact it is performed in local space.
Except... Then I rotate by 45 degrees on Z.
How do I get the correct location of the bounds now? They're placed as if the object is not rotated.
 2 likes
Comment
Comment