Jump to content
YouGroove

Math : AABB

Recommended Posts

The AABB class defines an axis-aligned bounding box.

 

What means axis-aligned ? alignes to axis world or aligned to local axis of the box ?

I mean if the box rotates, so the axis of the bouding box AABB will rotate also ?

 

 

Same for :

 

AABB::IntersectsAABB

 

 

This function performs an intersection test between two AABBs.

 

This means detects perfect collision even if the boxes are rotating in space ?

And what is overlap parameter function ?

Share this post


Link to post

Axis aligned means they won't rotate, which makes things faster to calculate.

Normally they are aligned wo the world axis, but who knows what Josh implemented.

Share this post


Link to post

It's useless; anyone can program non object aligned collision.

I used another engine having box axis object collision.

 

Our own solution is physic system with LE3 , what is lacking is : EnterCollison, ExitCollision functions.

 

Actually it is possible to know when two boxes physically collides ?

Share this post


Link to post

This isn't useless - AABB intersection is an inexpensive check because the geometry is simple and no transformations have to be done. If it fails, the objects won't collide and you're done. If it succeeds you can continue doing (more expensive) checks using tighter, object-aligned volumes.

 

I haven't used it, but looking at the docs I would guess that Entity::CollisionHook will let you know when two objects collide physically and react to that.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...