Files
XCEngine/engine/include/XCEngine/Physics/RaycastHit.h

18 lines
375 B
C++

#pragma once
#include <XCEngine/Physics/PhysicsTypes.h>
namespace XCEngine {
namespace Physics {
struct RaycastHit {
Components::GameObject* gameObject = nullptr;
Math::Vector3 point = Math::Vector3::Zero();
Math::Vector3 normal = Math::Vector3::Zero();
float distance = 0.0f;
bool isTrigger = false;
};
} // namespace Physics
} // namespace XCEngine