C# Class QuadTree, Unity-AI-framework

Inheritance: MonoBehaviour
Afficher le fichier Open project: MyOwnClone/Unity-AI-framework Class Usage Examples

Méthodes publiques

Свойство Type Description
CenterX float
CenterY float
TargetSize float
Width float
differentObjects List
generationDone bool
qtisToRegenerate List
rebuildingQuadTree bool
waypointsNeedRegeneration bool

Méthodes publiques

Méthode Description
DetermineGameObjectsInside ( GameObject item ) : List
GetObjectsInside ( Vector3 vec ) : List
GetQuadTreeItemFor ( Vector3 vec, Vector3 size, int maxDepth ) : List
GetQuadTreeItemFor ( Vector3 vec, int maxDepth ) : QuadTreeItem
Init ( GameObject startItem, int depth ) : void
IsGameObjectIn ( GameObject box1, GameObject box2 ) : bool
IsGameObjectIn ( GameObject bigger, Vector3 smallerPos ) : bool

Private Methods

Méthode Description
DetectChangeInObstacles ( ) : bool
DisposeOldQuadTree ( GameObject paramRoot, bool keepRoot ) : void
PrepareChild ( GameObject parent, Vector3 position, Vector3 size, int itemCounter, int depth ) : GameObject
Start ( ) : void
Update ( ) : void
UpdateQuadTree ( ) : void

Method Details

DetermineGameObjectsInside() public méthode

public DetermineGameObjectsInside ( GameObject item ) : List
item GameObject
Résultat List

GetObjectsInside() public méthode

public GetObjectsInside ( Vector3 vec ) : List
vec Vector3
Résultat List

GetQuadTreeItemFor() public méthode

public GetQuadTreeItemFor ( Vector3 vec, Vector3 size, int maxDepth ) : List
vec Vector3
size Vector3
maxDepth int
Résultat List

GetQuadTreeItemFor() public méthode

public GetQuadTreeItemFor ( Vector3 vec, int maxDepth ) : QuadTreeItem
vec Vector3
maxDepth int
Résultat QuadTreeItem

Init() public méthode

public Init ( GameObject startItem, int depth ) : void
startItem GameObject
depth int
Résultat void

IsGameObjectIn() public méthode

public IsGameObjectIn ( GameObject box1, GameObject box2 ) : bool
box1 GameObject
box2 GameObject
Résultat bool

IsGameObjectIn() public méthode

public IsGameObjectIn ( GameObject bigger, Vector3 smallerPos ) : bool
bigger GameObject
smallerPos Vector3
Résultat bool

Property Details

CenterX public_oe property

public float CenterX
Résultat float

CenterY public_oe property

public float CenterY
Résultat float

TargetSize public_oe property

public float TargetSize
Résultat float

Width public_oe property

public float Width
Résultat float

differentObjects public_oe property

public List differentObjects
Résultat List

generationDone public_oe static_oe property

public static bool generationDone
Résultat bool

qtisToRegenerate public_oe property

public List qtisToRegenerate
Résultat List

rebuildingQuadTree public_oe static_oe property

public static bool rebuildingQuadTree
Résultat bool

waypointsNeedRegeneration public_oe static_oe property

public static bool waypointsNeedRegeneration
Résultat bool