static int Bullet_CreateTransform( SGS_CTX ) { float pos[3] = {0,0,0}; SGSFN( "Bullet_CreateTransform" ); if( !sgs_LoadArgs( C, "|!x", sgs_ArgCheck_Vec3, pos ) ) return 0; SGS_CREATELITECLASS( C, NULL, BulletTransform, ( btTransform( btQuaternion::getIdentity(), btVector3( pos[0], pos[1], pos[2] ) ) ) ); return 1; }
void pushVec3( SGS_CTX, float x, float y, float z ) { SGS_CREATELITECLASS( C, NULL, Vec3, (x,y,z) ); }