mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Removed scaling of unit vectors.
This commit is contained in:
@@ -111,8 +111,8 @@ namespace box2d
|
||||
b2RayCastOutput output;
|
||||
if (!shape->RayCast(&output, input, transform, childIndex))
|
||||
return 0; // No hit.
|
||||
lua_pushnumber(L, Physics::scaleUp(output.normal.x));
|
||||
lua_pushnumber(L, Physics::scaleUp(output.normal.y));
|
||||
lua_pushnumber(L, output.normal.x);
|
||||
lua_pushnumber(L, output.normal.y);
|
||||
lua_pushnumber(L, output.fraction);
|
||||
return 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user