blob: c15646f8ba2cc55689f18360b76c685b9e6df044 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#include <stdio.h>
#include <stdlib.h>
#include <list>
extern "C" {
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
#include <btBulletDynamicsCommon.h>
#include <irrlicht.h>
#include "bphysbox.hpp"
#include "../../../shared/lua_api/phys/bphysbox.hpp"
using namespace irr;
using namespace scene;
using namespace core;
using namespace video;
extern IrrlichtDevice* device;
extern btDiscreteDynamicsWorld* World;
extern std::list<btRigidBody*> Objects;
/*
static LBPhysNode* checkisbphysbox(lua_State* L, int index){
void* ud = luaL_checkudata(L,index,"phys.physbox");
luaL_argcheck(L,ud != NULL, index, "'phys.physbox' expected");
return (LBPhysNode*) ud;
}
*/
/*
static LISceneNode* checkismesh(lua_State* L){
return checkismesh(L,1);
}
*/
//phys.newphysbox({vector3 size},{vector3 origin},mass)
/*
static int newcbphysbox(lua_State* L){//
newbphysbox(L);//{phys.physbox}
LBPhysNode
}
*/
void cbphysbox_register(lua_State* L){
bphysbox_register(L);
}
|