C# Класс HoloToolkit.Unity.Tagalong

A Tagalong that extends SimpleTagalong that allows for specifying the minimum and target percentage of the object to keep in the view frustum of the camera and that keeps the Tagalong object in front of other holograms including the Spatial Mapping Mesh.
Наследование: SimpleTagalong
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DebugDrawColliderBox ( bool draw, Bounds colliderBounds ) : void

This function draws a box at the bounds provided.

DebugDrawDebuggingLines ( bool draw, Vector3 center, Vector3 cameraPosition, Vector3 cameraToTarget, Vector3 centeredPoint, Vector3 pointOnFrustum, Vector3 recalculatedPointOnFrustum, Vector3 calculatedPosition ) : void

Защищенные методы

Метод Описание
CalculateTagalongTargetPosition ( Vector3 fromPosition, Vector3 &toPosition ) : bool
DebugDrawLine ( bool draw, Vector3 start, Vector3 end ) : void
DebugDrawLine ( bool draw, Vector3 start, Vector3 end, Color color ) : void
Start ( ) : void
Update ( ) : void

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

Метод Описание
AdjustTagalongDistance ( Vector3 &newPosition ) : bool
CalculateTargetPosition ( bool isHorizontal, Vector3 centermostEdge, Vector3 vectorTowardCenter, float width, Vector3 center, Plane frustumPlane, bool invertAngle ) : Vector3

Calculates a target position for the Tagalong in either the horizontal or vertical direction.

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

CalculateTagalongTargetPosition() защищенный Метод

protected CalculateTagalongTargetPosition ( Vector3 fromPosition, Vector3 &toPosition ) : bool
fromPosition UnityEngine.Vector3
toPosition UnityEngine.Vector3
Результат bool

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

This function draws a box at the bounds provided.
public DebugDrawColliderBox ( bool draw, Bounds colliderBounds ) : void
draw bool If true, drawing happens.
colliderBounds UnityEngine.Bounds The bounds to draw the box.
Результат void

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

public DebugDrawDebuggingLines ( bool draw, Vector3 center, Vector3 cameraPosition, Vector3 cameraToTarget, Vector3 centeredPoint, Vector3 pointOnFrustum, Vector3 recalculatedPointOnFrustum, Vector3 calculatedPosition ) : void
draw bool
center UnityEngine.Vector3
cameraPosition UnityEngine.Vector3
cameraToTarget UnityEngine.Vector3
centeredPoint UnityEngine.Vector3
pointOnFrustum UnityEngine.Vector3
recalculatedPointOnFrustum UnityEngine.Vector3
calculatedPosition UnityEngine.Vector3
Результат void

DebugDrawLine() защищенный Метод

protected DebugDrawLine ( bool draw, Vector3 start, Vector3 end ) : void
draw bool
start UnityEngine.Vector3
end UnityEngine.Vector3
Результат void

DebugDrawLine() защищенный Метод

protected DebugDrawLine ( bool draw, Vector3 start, Vector3 end, Color color ) : void
draw bool
start UnityEngine.Vector3
end UnityEngine.Vector3
color UnityEngine.Color
Результат void

Start() защищенный Метод

protected Start ( ) : void
Результат void

Update() защищенный Метод

protected Update ( ) : void
Результат void