Fixed bounding box AABB
Former-commit-id: ef8ec52e7bffca69b1e41462f0971e00a1b73029
This commit is contained in:
parent
15fa8378c9
commit
693aec36c3
|
|
@ -158,9 +158,10 @@ NzString NzBoundingVolume<T>::ToString() const
|
|||
template<typename T>
|
||||
void NzBoundingVolume<T>::Update(const NzMatrix4<T>& transformMatrix)
|
||||
{
|
||||
aabb.Set(obb.localBox);
|
||||
aabb.Transform(transformMatrix);
|
||||
obb.Update(transformMatrix);
|
||||
aabb.Set(obb(0), obb(1));
|
||||
for (unsigned int i = 2; i < 8; ++i)
|
||||
aabb.ExtendTo(obb(i));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
Loading…
Reference in New Issue