Модератор: Mikle
Public Sub MoveForward(Movement As Single)
'---------------------------------------------------
With Pos
.X = Pos.X + (Cos(g_90d + Rot.y) * Movement)
.y = Pos.y + (sIn(Rot.X) * Movement)
.z = Pos.z + (sIn(g_90d + Rot.y) * Movement)
End With
CamPos = Pos
'---------------------------------------------------
End Sub
Public Function GetDirection() As D3DVector
With GetDirection
.X = ViewMatrix.m13
.Y = ViewMatrix.m23
.Z = ViewMatrix.m33
End With
End Function
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 47