Hello good sirs and madams!
Im trying to figure out if a rotated box is fully inside another box using the Shape:computeAABB function to get the bounding box coordinates.
My problem is, what are the translated X and translated Y values? Can someone supply a small snippet please? I couldnot find any other forum entries regarding compute AABB (ALSO THAT FuNCTION NAME!)
Using Shape:computeAABB to get bounding box
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Using Shape:computeAABB to get bounding box
You can learn anything, but you cannot learn everything!
Re: Using Shape:computeAABB to get bounding box
Yell0w wrote:Hello good sirs and madams!
Im trying to figure out if a rotated box is fully inside another box using the Shape:computeAABB function to get the bounding box coordinates.
My problem is, what are the translated X and translated Y values? Can someone supply a small snippet please? I couldnot find any other forum entries regarding compute AABB (ALSO THAT FuNCTION NAME!)
Rotated box is always within BBox, that's the usual idea of a bounding box.Im trying to figure out if a rotated box is fully inside another box using the Shape:computeAABB function to get the bounding box coordinates.
What do you actualy understand by saying "X and Y" ?My problem is, what are the translated X and translated Y values
Shape:computeAABB returns local shape coords. You can get the world coords using "YourBody:getWorldPoints(YourShape:computeAABB)" , http://love2d.org/wiki/Body:getWorldPoints
And the function name is perfectly fine. AABB is a term used very often in simulations.
Re: Using Shape:computeAABB to get bounding box
Okay then i misunderstood the function a bit, even tho it will work just fine. What i was really trying to do was finding the four corners coordinates from a rounded rectangle.
I have never used AABB, before and im sorry i did not know it was common knowledge. (wiki: axis-aligned bounding box (AABB).)
Still i dont know what the transformed prefix is supposed to mean, is it just a normal x,y integer or is it transformed from the left back foot of a cow?
Dziękuję Red Hot
I have never used AABB, before and im sorry i did not know it was common knowledge. (wiki: axis-aligned bounding box (AABB).)
Still i dont know what the transformed prefix is supposed to mean, is it just a normal x,y integer or is it transformed from the left back foot of a cow?
Dziękuję Red Hot
You can learn anything, but you cannot learn everything!
Re: Using Shape:computeAABB to get bounding box
This part remains ambiguous to me :
Du er velkommen Yell0w
Can you rephrase it?Still i dont know what the transformed prefix is supposed to mean
Du er velkommen Yell0w
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests