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
파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity 1 사용 예제들

공개 메소드들

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