Rastar Posted February 9, 2014 Share Posted February 9, 2014 What are the exact steps to manually set an AABB? Since my mesh patches are displaced in the shaders, the automtically calculated ones will be wrong. I was thinking along these lines: local aabb = mesh:GetAABB() aabb.min = Vec3(minx,miny,minz) aabb.max = Vec3(maxx,maxy,maxz) aabb.Update() Would that work? Do I have to call any of those entity:UpdateAABB() methods afterwards or will this destroy my manual setting? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.