diff options
author | sanine <sanine.not@pm.me> | 2023-03-22 23:06:26 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-03-22 23:06:26 -0500 |
commit | dc8f29206201fcc977443ce9c6138c2f3129c1c8 (patch) | |
tree | d2acf572e965f3fdabf4fdb02ee0779ddacfb846 /src/ode/world.c | |
parent | 78eb15d59190c079b1edb405eeae6696724f1b2e (diff) |
re-implement bouncing ball
Diffstat (limited to 'src/ode/world.c')
-rw-r--r-- | src/ode/world.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ode/world.c b/src/ode/world.c index 69b5a92..a38eb30 100644 --- a/src/ode/world.c +++ b/src/ode/world.c @@ -15,7 +15,7 @@ void ode_push_world(lua_State *L, dWorldID w) int dWorldCreate_bind(lua_State *L) { - dWorldID w = lua_newuserdata(L, sizeof(dWorldID)); + dWorldID w = dWorldCreate(); ode_push_world(L, w); return 1; } @@ -206,7 +206,7 @@ int dWorldStep_bind(lua_State *L) int dWorldQuickStep_bind(lua_State *L) { dWorldID *w = luaL_checkudata(L, 1, ode_world_tname); - dReal stepsize = luaL_checkinteger(L, 2); + dReal stepsize = luaL_checknumber(L, 2); dWorldQuickStep(*w, stepsize); return 0; } |