I figure it out myself it has something to do with:
Code: Select all
Dim line As Line3D = New Line3D
line.start = camera.Position
line.end = line.start + (camera.Target - line.start).Normalize * 1000
Dim intersection As Vector3D
Dim tri As Triangle3D
If smgr.SceneCollisionManager.GetCollisionPoint(line, selector, intersection, tri) Then
bill.Position = intersection
How can I replica the function seen in tut 7???