File tree Expand file tree Collapse file tree
Rebuild of cphysics/Rebuild of cphysics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class RayAngleInformation {
2424
2525class ShadowCasting {
2626public:
27- ShadowCasting (const Vectors2D& startPoint, unsigned int distance);
27+ ShadowCasting (const Vectors2D& startPoint, real distance);
2828
2929 void updateProjections (const std::vector<Body*>& bodiesToEvaluate);
3030
@@ -38,6 +38,6 @@ class ShadowCasting {
3838
3939private:
4040 std::vector<RayAngleInformation> rayData;
41- unsigned int distance;
41+ real distance;
4242 Vectors2D startPoint;
43- };
43+ };
Original file line number Diff line number Diff line change 44
55#include < algorithm>
66
7- ShadowCasting::ShadowCasting (const Vectors2D& startPoint, unsigned int distance)
7+ ShadowCasting::ShadowCasting (const Vectors2D& startPoint, real distance)
88{
99 this ->startPoint = startPoint;
1010 this ->distance = distance;
You can’t perform that action at this time.
0 commit comments