i have problem with this code, i get illegal object number error
`setup test room
load object "levels/TestRoom.x",TestRoom
set object cull TestRoom,1
position object TestRoom,0,0,0
rotate object TestRoom,-90,0,0
`set test room object to act as solid ground
col=NDB_NewtonCreateConvexHull(TestRoom)
LevelObj=NDB_NewtonCreateBody(col)
NDB_NewtonBodySetMassMatrix LevelObj,0.0
NDB_NewtonReleaseCollision col
NDB_BodySetGravity LevelObj,0
what i want to do is to load single model that will act as ground for a level. I want to put this code in the function so it loads level model and applies convex hull collision to it.