baserotation

This commit is contained in:
Glenn Maynard
2005-07-05 06:38:34 +00:00
parent df841ec994
commit 8cc8c66890
+6
View File
@@ -1144,6 +1144,9 @@ public:
static int rotationy( T* p, lua_State *L ) { p->SetRotationY(FArg(1)); return 0; }
static int rotationz( T* p, lua_State *L ) { p->SetRotationZ(FArg(1)); return 0; }
static int getrotation( T* p, lua_State *L ) { lua_pushnumber(L, p->GetRotationX()); lua_pushnumber(L, p->GetRotationY()); lua_pushnumber(L, p->GetRotationZ()); return 3; }
static int baserotationx( T* p, lua_State *L ) { p->SetBaseRotationX(FArg(1)); return 0; }
static int baserotationy( T* p, lua_State *L ) { p->SetBaseRotationY(FArg(1)); return 0; }
static int baserotationz( T* p, lua_State *L ) { p->SetBaseRotationZ(FArg(1)); return 0; }
static int skewx( T* p, lua_State *L ) { p->SetSkewX(FArg(1)); return 0; }
static int heading( T* p, lua_State *L ) { p->AddRotationH(FArg(1)); return 0; }
static int pitch( T* p, lua_State *L ) { p->AddRotationP(FArg(1)); return 0; }
@@ -1265,6 +1268,9 @@ public:
ADD_METHOD( rotationy )
ADD_METHOD( rotationz )
ADD_METHOD( getrotation )
ADD_METHOD( baserotationx )
ADD_METHOD( baserotationy )
ADD_METHOD( baserotationz )
ADD_METHOD( skewx )
ADD_METHOD( heading )
ADD_METHOD( pitch )