C# Class FootprintPlacer

Inheritance: MonoBehaviour
Afficher le fichier Open project: famerij/EdgeGraph Class Usage Examples

Méthodes publiques

Свойство Type Description
footprintPrefabsInside List
footprintPrefabsOnEdge List
graph Graph
handPlacementEnabled bool
handPlacementOnEdge bool

Méthodes publiques

Méthode Description
ClearUnmodifiedFootprints ( bool onEdge ) : void
FillInsideWithFootprints ( ) : void
FillWithEdgesWithFootprints ( ) : void
GetFootprintPosAndRotAtTarget ( Vector3 target, Vector3 &pos, Quaternion &rot, Vector3 &closestPoint, int index, bool placeOnEdge = true, bool placeInside = true ) : void

Gets position and rotation in given target position according to closest edge

GetRandomEdgeFootPrintIdx ( ) : int
GetRandomInsideFootPrintIdx ( ) : int
InstantiatedFootprintDestroyed ( Footprint, fp ) : void
PlaceFootprint ( Vector3 worldPos, Quaternion rotation, int index, bool onEdge, bool modified = false ) : GameObject
UpdateData ( ) : void

Private Methods

Méthode Description
FootprintIsInsideGraph ( Footprint, footprint, Matrix4x4 footprintTRSMatrix ) : bool
FootprintOverlapsOthers ( Footprint, footprint, Matrix4x4 footprintTRSMatrix ) : bool

Method Details

ClearUnmodifiedFootprints() public méthode

public ClearUnmodifiedFootprints ( bool onEdge ) : void
onEdge bool
Résultat void

FillInsideWithFootprints() public méthode

public FillInsideWithFootprints ( ) : void
Résultat void

FillWithEdgesWithFootprints() public méthode

public FillWithEdgesWithFootprints ( ) : void
Résultat void

GetFootprintPosAndRotAtTarget() public méthode

Gets position and rotation in given target position according to closest edge
public GetFootprintPosAndRotAtTarget ( Vector3 target, Vector3 &pos, Quaternion &rot, Vector3 &closestPoint, int index, bool placeOnEdge = true, bool placeInside = true ) : void
target Vector3
pos Vector3
rot Quaternion
closestPoint Vector3
index int
placeOnEdge bool Is footprint placed on the edge or on target?
placeInside bool Is footprint placed inside or outside the edge?
Résultat void

GetRandomEdgeFootPrintIdx() public méthode

public GetRandomEdgeFootPrintIdx ( ) : int
Résultat int

GetRandomInsideFootPrintIdx() public méthode

public GetRandomInsideFootPrintIdx ( ) : int
Résultat int

InstantiatedFootprintDestroyed() public méthode

public InstantiatedFootprintDestroyed ( Footprint, fp ) : void
fp Footprint,
Résultat void

PlaceFootprint() public méthode

public PlaceFootprint ( Vector3 worldPos, Quaternion rotation, int index, bool onEdge, bool modified = false ) : GameObject
worldPos Vector3
rotation Quaternion
index int
onEdge bool
modified bool
Résultat GameObject

UpdateData() public méthode

public UpdateData ( ) : void
Résultat void

Property Details

footprintPrefabsInside public_oe property

public List footprintPrefabsInside
Résultat List

footprintPrefabsOnEdge public_oe property

public List footprintPrefabsOnEdge
Résultat List

graph public_oe property

public Graph graph
Résultat Graph

handPlacementEnabled public_oe property

public bool handPlacementEnabled
Résultat bool

handPlacementOnEdge public_oe property

public bool handPlacementOnEdge
Résultat bool