Compare commits
1 Commits
b242ab318c
...
3cd0a1f8ae
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cd0a1f8ae |
@ -48,7 +48,7 @@ void draw_quad(int x1, int y1, int x2, int y2,
|
||||
void set_sphere(float x, float y, float vx, float vy)
|
||||
{
|
||||
XMVECTOR unit = XMVectorSet(1, 0, 0, 0); // the angle==0 unit vector
|
||||
view::state.forward = XMVectorSet(vx, vy, 0, 0);
|
||||
view::state.forward = XMVector3Normalize(XMVectorSet(vx, vy, 0, 0));
|
||||
view::state.normal = view::get_normal();
|
||||
view::state.direction = view::get_direction();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user