But now I hit to wall. I don't know how to make this in Cplusplus using D3D9 libraries.
[SOURCE] public Vector3 Direction { get { return worldMatrix.Forward; } // Looking forward how to get this with D3D9 libraries set { Vector3 position = worldMatrix.Translation; // Looking forward how to get this too Vector3 forward = value; if (forward == Vector3.Up || forward == Vector3.Down) { Vector3 right = Vector3.Right; Vector3.Cross(ref right, ref forward, out up); //D3DXVec3Cross } //And for this too Matrix.CreateWorld(ref position, ref forward, ref up, out worldMatrix); } }[/SOURCE]