Forum

> > CS2D > Scripts > Can't make physics sample work
Forums overviewCS2D overview Scripts overviewLog in to reply

English Can't make physics sample work

4 replies
To the start Previous 1 Next To the start

old Can't make physics sample work

Mami Tomoe
User Off Offline

Quote
1
2
Lua Physics Error: API call without initialization
LUA ERROR: sys/lua/physics.lua:285: bad argument #1 to 'physics_setmass' (number expected, got boolean)
I did a little digging and it gets
false
.

I get this on a
server.lua
:
1
2
3
dofile("sys/lua/physics.lua")
dofile("sys/lua/samples/physics_collisions.lua")
dofile("sys/lua/samples/physics_cars.lua")

Which I ran on a 200x200 map filled with nothing but grass tiles.

I don't know why it doesn't work.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview