Click or drag to resize

WalkthroughManagerDetectAvatarCollision Method

아바타와 모델간 충돌 위치 검사 및 표시

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool DetectAvatarCollision()

Return Value

Type: Boolean
충돌 여부 반환, 충돌시 true
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.View.Navigation != VIZCore3D.NET.Data.NavigationModes.WALK) return;
    if (vizcore3d.Walkthrough.Avatar == false) return;

    if (vizcore3d.Walkthrough.DetectAvatarCollision() == false) return;

    List<VIZCore3D.NET.Data.AvatarCollision> items =
        vizcore3d.Walkthrough.GetAvatarCollision();

    foreach (VIZCore3D.NET.Data.AvatarCollision item in items)
    {
        int index = item.NodeIndex;
        VIZCore3D.NET.Data.Vertex3D v = item.Position;
    }
}
See Also