C# Класс OOBCollisionDetection, Unity-AI-framework

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AreBoxesOverlapping ( GameObject box1, GameObject box2 ) : bool
AreBoxexOverlapping ( GameObject box1, Vector3 box2Size, Vector3 box2Position ) : bool
AreBoxexOverlapping ( Vector3 box1Size, Vector3 box1Position, Vector3 box2Size, Vector3 box2Position ) : bool
GetLineIntersection ( Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 ) : Vector3
IsRayIntersectingBox ( Vector3 segment_pt0, Vector3 segment_pt1, Vector3 boxPosition, Vector3 boxSize ) : bool

Приватные методы

Метод Описание
OBBOverlap ( Vector3 a, Vector3 Pa, Vector3 A, Vector3 b, Vector3 Pb, Vector3 B ) : bool
Update ( ) : void
operator ( ) : Vector3

Описание методов

AreBoxesOverlapping() публичный статический Метод

public static AreBoxesOverlapping ( GameObject box1, GameObject box2 ) : bool
box1 GameObject
box2 GameObject
Результат bool

AreBoxexOverlapping() публичный статический Метод

public static AreBoxexOverlapping ( GameObject box1, Vector3 box2Size, Vector3 box2Position ) : bool
box1 GameObject
box2Size Vector3
box2Position Vector3
Результат bool

AreBoxexOverlapping() публичный статический Метод

public static AreBoxexOverlapping ( Vector3 box1Size, Vector3 box1Position, Vector3 box2Size, Vector3 box2Position ) : bool
box1Size Vector3
box1Position Vector3
box2Size Vector3
box2Position Vector3
Результат bool

GetLineIntersection() публичный статический Метод

public static GetLineIntersection ( Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 ) : Vector3
p1 Vector3
p2 Vector3
p3 Vector3
p4 Vector3
Результат Vector3

IsRayIntersectingBox() публичный статический Метод

public static IsRayIntersectingBox ( Vector3 segment_pt0, Vector3 segment_pt1, Vector3 boxPosition, Vector3 boxSize ) : bool
segment_pt0 Vector3
segment_pt1 Vector3
boxPosition Vector3
boxSize Vector3
Результат bool