Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Sep 2, 2023
1 parent 5088caf commit 6270555
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/box2d_type_conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ float ensure_non_zero(const float &p_value) {
}

float godot_to_box2d(const float &p_value) {
return p_value * (1.0f/Box2DProjectSettings::get_scaling_factor());
return p_value * (1.0f / Box2DProjectSettings::get_scaling_factor());
}

b2Vec2 godot_to_box2d(const Vector2 &p_vector) {
Expand Down
2 changes: 1 addition & 1 deletion src/box2d_type_conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include <godot_cpp/variant/variant.hpp>
#include <godot_cpp/variant/vector2.hpp>

#include <box2d/b2_math.h>
#include "servers/box2d_project_settings.h"
#include <box2d/b2_math.h>

using namespace godot;

Expand Down
2 changes: 1 addition & 1 deletion src/shapes/box2d_shape_convex_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ b2Shape *Box2DShapeConvexPolygon::_get_transformed_b2Shape(ShapeInfo shape_info,
b2Vec2 b2_points[b2_maxPolygonVertices];
for (int i = 0; i < polygon.size(); i++) {
b2_points[i] = godot_to_box2d(shape_info.transform.xform(polygon[i]));
ERR_PRINT(rtos(b2_points[i].x) + " " + rtos(b2_points[i].y));
ERR_PRINT(rtos(b2_points[i].x) + " " + rtos(b2_points[i].y));
}
b2PolygonShape *shape = memnew(b2PolygonShape);
int new_size = remove_bad_points(b2_points, polygon.size());
Expand Down

0 comments on commit 6270555

Please sign in to comment.