C# Class OOBCollisionDetection, Unity-AI-framework

Exibir arquivo Open project: MyOwnClone/Unity-AI-framework Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
OBBOverlap ( Vector3 a, Vector3 Pa, Vector3 A, Vector3 b, Vector3 Pb, Vector3 B ) : bool
Update ( ) : void
operator ( ) : Vector3

Method Details

AreBoxesOverlapping() public static method

public static AreBoxesOverlapping ( GameObject box1, GameObject box2 ) : bool
box1 GameObject
box2 GameObject
return bool

AreBoxexOverlapping() public static method

public static AreBoxexOverlapping ( GameObject box1, Vector3 box2Size, Vector3 box2Position ) : bool
box1 GameObject
box2Size Vector3
box2Position Vector3
return bool

AreBoxexOverlapping() public static method

public static AreBoxexOverlapping ( Vector3 box1Size, Vector3 box1Position, Vector3 box2Size, Vector3 box2Position ) : bool
box1Size Vector3
box1Position Vector3
box2Size Vector3
box2Position Vector3
return bool

GetLineIntersection() public static method

public static GetLineIntersection ( Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 ) : Vector3
p1 Vector3
p2 Vector3
p3 Vector3
p4 Vector3
return Vector3

IsRayIntersectingBox() public static method

public static IsRayIntersectingBox ( Vector3 segment_pt0, Vector3 segment_pt1, Vector3 boxPosition, Vector3 boxSize ) : bool
segment_pt0 Vector3
segment_pt1 Vector3
boxPosition Vector3
boxSize Vector3
return bool