mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
28 lines
709 B
C++
28 lines
709 B
C++
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
|
|
|
#pragma once
|
|
|
|
#include "Util/G3DCore.h"
|
|
|
|
namespace RBX {
|
|
|
|
class Part;
|
|
|
|
class HitTest {
|
|
private:
|
|
// hitTests
|
|
static bool hitTestBox(const Part& part, RbxRay& rayInPartCoords, Vector3& hitPointInPartCoords, float gridToReal);
|
|
static bool hitTestBall(const Part& part, RbxRay& rayInPartCoords, Vector3& hitPointInPartCoords, float gridToReal);
|
|
static bool hitTestCylinder(const Part& part, RbxRay& rayInPartCoords, Vector3& hitPointInPartCoords, float gridToReal);
|
|
|
|
public:
|
|
static bool hitTest(
|
|
const Part& part,
|
|
RbxRay& rayInPartCoords,
|
|
Vector3& hitPointInPartCoords,
|
|
float gridToReal);
|
|
};
|
|
|
|
} // namespace
|
|
|