WalkthroughManagerGetAvatarCollision Method |
Namespace: VIZCore3D.NET.Manager
// 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; } }