C# 클래스 OOBCollisionDetection, Unity-AI-framework

파일 보기 프로젝트 열기: MyOwnClone/Unity-AI-framework 1 사용 예제들

공개 메소드들

메소드 설명
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