C# Класс FootprintPlacer

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

Открытые свойства

Свойство Тип Описание
footprintPrefabsInside List
footprintPrefabsOnEdge List
graph Graph
handPlacementEnabled bool
handPlacementOnEdge bool

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

Метод Описание
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

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

Метод Описание
FootprintIsInsideGraph ( Footprint, footprint, Matrix4x4 footprintTRSMatrix ) : bool
FootprintOverlapsOthers ( Footprint, footprint, Matrix4x4 footprintTRSMatrix ) : bool

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

ClearUnmodifiedFootprints() публичный Метод

public ClearUnmodifiedFootprints ( bool onEdge ) : void
onEdge bool
Результат void

FillInsideWithFootprints() публичный Метод

public FillInsideWithFootprints ( ) : void
Результат void

FillWithEdgesWithFootprints() публичный Метод

public FillWithEdgesWithFootprints ( ) : void
Результат void

GetFootprintPosAndRotAtTarget() публичный Метод

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?
Результат void

GetRandomEdgeFootPrintIdx() публичный Метод

public GetRandomEdgeFootPrintIdx ( ) : int
Результат int

GetRandomInsideFootPrintIdx() публичный Метод

public GetRandomInsideFootPrintIdx ( ) : int
Результат int

InstantiatedFootprintDestroyed() публичный Метод

public InstantiatedFootprintDestroyed ( Footprint, fp ) : void
fp Footprint,
Результат void

PlaceFootprint() публичный Метод

public PlaceFootprint ( Vector3 worldPos, Quaternion rotation, int index, bool onEdge, bool modified = false ) : GameObject
worldPos Vector3
rotation Quaternion
index int
onEdge bool
modified bool
Результат GameObject

UpdateData() публичный Метод

public UpdateData ( ) : void
Результат void

Описание свойств

footprintPrefabsInside публичное свойство

public List footprintPrefabsInside
Результат List

footprintPrefabsOnEdge публичное свойство

public List footprintPrefabsOnEdge
Результат List

graph публичное свойство

public Graph graph
Результат Graph

handPlacementEnabled публичное свойство

public bool handPlacementEnabled
Результат bool

handPlacementOnEdge публичное свойство

public bool handPlacementOnEdge
Результат bool