Fix newBoxShape dimensions;

This commit is contained in:
bjorn 2022-10-16 19:53:44 -07:00
parent 904fb282c2
commit 3b3d2d4e77
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ static int l_lovrPhysicsNewBallJoint(lua_State* L) {
static int l_lovrPhysicsNewBoxShape(lua_State* L) {
float size[4];
luax_readscale(L, 1, size, 1, NULL);
luax_readscale(L, 1, size, 3, NULL);
BoxShape* box = lovrBoxShapeCreate(size[0], size[1], size[2]);
luax_pushtype(L, BoxShape, box);
lovrRelease(box, lovrShapeDestroy);