| 648 | |
| 649 | |
| 650 | int LuaObstacle::GetFacePlane(lua_State* L) { |
| 651 | const MeshFace* face = ParseMeshFace(L, 1); |
| 652 | if (face == NULL) { |
| 653 | return luaL_pushnil(L); |
| 654 | } |
| 655 | const fvec4& vec = face->getPlane(); |
| 656 | lua_createtable(L, 4, 0); |
| 657 | lua_pushfloat(L, vec.x); lua_rawseti(L, -2, 1); |
| 658 | lua_pushfloat(L, vec.y); lua_rawseti(L, -2, 2); |
| 659 | lua_pushfloat(L, vec.z); lua_rawseti(L, -2, 3); |
| 660 | lua_pushfloat(L, vec.w); lua_rawseti(L, -2, 4); |
| 661 | return 1; |
| 662 | } |
| 663 | |
| 664 | |
| 665 | int LuaObstacle::GetFacePhyDrv(lua_State* L) { |
nothing calls this directly
no test coverage detected