Hi Roland,
Right - rotation limits would not be meant to do the job of general AABB testing.
The motivation to have rotation limits would be to get exact limits for absolute limits (e.g. a 1x4 hinge brick - it goes 0-180 degrees, end of story).
- These rotation limits could be easier for apps to access if they don't do full physics.
- These rotation limits could provide -exact- results; I'm not sure that AABB collision testing on the hinge is going to give us the precision we want.
You could argue that the whole thing should be done with AABBs, but I think that in some cases the AABB limiting the hinge itself is very 'tweaky' and would have to be significantly more precise than a general "don't let the bricks totally overlap" mechanism.
cheers
Ben
Right - rotation limits would not be meant to do the job of general AABB testing.
The motivation to have rotation limits would be to get exact limits for absolute limits (e.g. a 1x4 hinge brick - it goes 0-180 degrees, end of story).
- These rotation limits could be easier for apps to access if they don't do full physics.
- These rotation limits could provide -exact- results; I'm not sure that AABB collision testing on the hinge is going to give us the precision we want.
You could argue that the whole thing should be done with AABBs, but I think that in some cases the AABB limiting the hinge itself is very 'tweaky' and would have to be significantly more precise than a general "don't let the bricks totally overlap" mechanism.
cheers
Ben