Changed ref_actor for animation callback to actor id

This commit is contained in:
n00b
2024-12-22 15:22:20 -05:00
parent 44eb4aa236
commit 070cbe2898
6 changed files with 9 additions and 7 deletions

View File

@@ -626,8 +626,8 @@ int rc_castRay2D_All(double from_x, double from_y, double to_x, double to_y)
rc_rayHit2D.clear();
RayCastCallback callback;
b2Vec2 point1(from_x, from_y);
b2Vec2 point2(to_x, to_y);
const b2Vec2 point1(from_x, from_y);
const b2Vec2 point2(to_x, to_y);
rc_canvas[rc_active_canvas].physics2D.world->RayCast(&callback, point1, point2);