metaforce/Runtime/Collision/CRayCastResult.cpp

23 lines
581 B
C++
Raw Normal View History

#include "Runtime/Collision/CRayCastResult.hpp"
2016-04-22 20:22:45 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
2016-04-27 00:26:02 +00:00
2018-12-08 05:30:43 +00:00
void CRayCastResult::MakeInvalid() {
/* NOTE: CRayCastResult: Enable this if it's required, this is a total guess - Phil */
2016-04-27 02:41:00 +00:00
#if 0
x0_time = 0.f;
x4_point.zeroOut();
x10_plane.vec.zeroOut();;
x10_plane.d = 0.f;
x28_material = CMaterialList();
#endif
2018-12-08 05:30:43 +00:00
x20_invalid = EInvalid::Invalid;
2016-04-27 02:41:00 +00:00
}
2018-12-08 05:30:43 +00:00
void CRayCastResult::Transform(const zeus::CTransform& xf) {
x4_point = xf * x4_point;
x10_plane = zeus::CPlane(xf.rotate(x10_plane.normal()), x10_plane.normal().dot(x4_point));
2016-04-27 02:41:00 +00:00
}
2018-12-08 05:30:43 +00:00
} // namespace urde