// 3d box
int width = 30;
Vector2 p1 =
WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) -
Vector3(width, width, -22), POV, Width, Height);
Vector2 p2 =
WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) -
Vector3(width, -width, -22), POV, Width, Height);
Vector2 p3
= WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) +
Vector3(width, width, 22), POV, Width, Height);
Vector2 p4 =
WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) +
Vector3(width, -width, 22), POV, Width, Height);
Vector2 t1 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) - Vector3(width, width,
0), POV, Width,
Height);
Vector2 t2 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) - Vector3(width, -width,
0), POV, Width,
Height);
Vector2 t3 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) + Vector3(width, width,
0), POV, Width,
Height);
Vector2 t4 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) + Vector3(width, -width,
0), POV, Width,
Height);
Color skclr = Color::White();
canvas.DrawLine(p1, p2, skclr, 2);
canvas.DrawLine(p3, p4, skclr, 2);
canvas.DrawLine(p2, p3, skclr, 2);
canvas.DrawLine(p1, p4, skclr, 2);
canvas.DrawLine(t1, t2, skclr, 2);
canvas.DrawLine(t3, t4, skclr, 2);
canvas.DrawLine(t2, t3, skclr, 2);
canvas.DrawLine(t1, t4, skclr, 2);
canvas.DrawLine(p1, t1, skclr, 2);
canvas.DrawLine(p2, t2, skclr, 2);
canvas.DrawLine(p3, t3, skclr, 2);
canvas.DrawLine(p4, t4, skclr, 2);
int width = 30;
Vector2 p1 =
WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) -
Vector3(width, width, -22), POV, Width, Height);
Vector2 p2 =
WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) -
Vector3(width, -width, -22), POV, Width, Height);
Vector2 p3
= WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) +
Vector3(width, width, 22), POV, Width, Height);
Vector2 p4 =
WorldToScreen(Player::getBoneLoc(c2wMatrix, BoneArr, 6) +
Vector3(width, -width, 22), POV, Width, Height);
Vector2 t1 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) - Vector3(width, width,
0), POV, Width,
Height);
Vector2 t2 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) - Vector3(width, -width,
0), POV, Width,
Height);
Vector2 t3 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) + Vector3(width, width,
0), POV, Width,
Height);
Vector2 t4 = WorldToScreen(Player::getBoneLoc(c2wMatrix,
BoneArr, 0) + Vector3(width, -width,
0), POV, Width,
Height);
Color skclr = Color::White();
canvas.DrawLine(p1, p2, skclr, 2);
canvas.DrawLine(p3, p4, skclr, 2);
canvas.DrawLine(p2, p3, skclr, 2);
canvas.DrawLine(p1, p4, skclr, 2);
canvas.DrawLine(t1, t2, skclr, 2);
canvas.DrawLine(t3, t4, skclr, 2);
canvas.DrawLine(t2, t3, skclr, 2);
canvas.DrawLine(t1, t4, skclr, 2);
canvas.DrawLine(p1, t1, skclr, 2);
canvas.DrawLine(p2, t2, skclr, 2);
canvas.DrawLine(p3, t3, skclr, 2);
canvas.DrawLine(p4, t4, skclr, 2);