Wenn man ne Box schnell zeichnen möchte
public static void DrawBox(Vector3 position, Vector3 halfExtends, Quaternion rotation, Color color)
{
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, halfExtends.y, halfExtends.z), position + rotation * new Vector3(-halfExtends.x, halfExtends.y, halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, -halfExtends.y, halfExtends.z), position + rotation * new Vector3(-halfExtends.x, -halfExtends.y, halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, halfExtends.y, -halfExtends.z), position + rotation * new Vector3(-halfExtends.x, halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, -halfExtends.y, -halfExtends.z), position + rotation * new Vector3(-halfExtends.x, -halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, -halfExtends.y, halfExtends.z), position + rotation * new Vector3(halfExtends.x, halfExtends.y, halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(-halfExtends.x, -halfExtends.y, halfExtends.z), position + rotation * new Vector3(-halfExtends.x, halfExtends.y, halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, -halfExtends.y, -halfExtends.z), position + rotation * new Vector3(halfExtends.x, halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(-halfExtends.x, -halfExtends.y, -halfExtends.z), position + rotation * new Vector3(-halfExtends.x, halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, halfExtends.y, halfExtends.z), position + rotation * new Vector3(halfExtends.x, halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(-halfExtends.x, halfExtends.y, halfExtends.z), position + rotation * new Vector3(-halfExtends.x, halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(halfExtends.x, -halfExtends.y, halfExtends.z), position + rotation * new Vector3(halfExtends.x, -halfExtends.y, -halfExtends.z), color);
Debug.DrawLine(position + rotation * new Vector3(-halfExtends.x, -halfExtends.y, halfExtends.z), position + rotation * new Vector3(-halfExtends.x, -halfExtends.y, -halfExtends.z), color);
}