You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Set clang-format RemoveSemicolon rule to true
- Set clang-format `Standard` rule to `c++20`
This commit is contained in:
@@ -377,7 +377,7 @@ void Camera3D::set_projection(ProjectionType p_mode) {
|
||||
|
||||
RID Camera3D::get_camera() const {
|
||||
return camera;
|
||||
};
|
||||
}
|
||||
|
||||
void Camera3D::make_current() {
|
||||
current = true;
|
||||
@@ -423,7 +423,7 @@ bool Camera3D::is_current() const {
|
||||
Vector3 Camera3D::project_ray_normal(const Point2 &p_pos) const {
|
||||
Vector3 ray = project_local_ray_normal(p_pos);
|
||||
return get_camera_transform().basis.xform(ray).normalized();
|
||||
};
|
||||
}
|
||||
|
||||
Vector3 Camera3D::project_local_ray_normal(const Point2 &p_pos) const {
|
||||
ERR_FAIL_COND_V_MSG(!is_inside_tree(), Vector3(), "Camera is not inside scene.");
|
||||
@@ -441,7 +441,7 @@ Vector3 Camera3D::project_local_ray_normal(const Point2 &p_pos) const {
|
||||
}
|
||||
|
||||
return ray;
|
||||
};
|
||||
}
|
||||
|
||||
Vector3 Camera3D::project_ray_origin(const Point2 &p_pos) const {
|
||||
ERR_FAIL_COND_V_MSG(!is_inside_tree(), Vector3(), "Camera is not inside scene.");
|
||||
@@ -470,7 +470,7 @@ Vector3 Camera3D::project_ray_origin(const Point2 &p_pos) const {
|
||||
} else {
|
||||
return get_camera_transform().origin;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
bool Camera3D::is_position_behind(const Vector3 &p_pos) const {
|
||||
Transform3D t = get_global_transform();
|
||||
|
||||
Reference in New Issue
Block a user