00001 00002 #ifndef __KX_BLENDERORIENTATION_H 00003 #define __KX_BLENDERORIENTATION_H 00004 00005 #include "MT_Vector3.h" 00006 #include "MT_Point3.h" 00007 00008 void BL_Mat3ToEul (float tmat[][3],float* eul); 00009 void BL_WhereIsObjectSimul(struct Object* blenderobj); 00010 void BL_SetBlenderPosition(struct Object* blenderobj,const MT_Vector3& pos); 00011 void BL_SetBlenderRotation(struct Object* blenderobj,const MT_Vector3& euler_rot); 00012 MT_Point3 BL_GetBlenderPosition(struct Object* blenderobj); 00013 MT_Vector3 BL_GetBlenderRotation(struct Object* blenderobj); 00014 MT_Vector3 BL_GetBlenderScaling(struct Object* blenderobj); 00015 void BL_GetLocalBounds(struct Object* blenderobj,MT_Point3& center,MT_Vector3& size); 00016 float* BL_GetTransformationMatrix(struct Object* blenderobj); 00017 bool BL_IsDynamicObject(struct Object*); 00018 bool BL_IsActor(struct Object*); 00019 double BL_GetDynamicObjectSize(struct Object* blenderobj); 00020 float* BL_GetParentInverse(struct Object* blenderobj); 00021 bool BL_HasParent(struct Object* blenderobject); 00022 MT_Vector3 BL_GetFhRay(struct Object* blenderobj); 00023 bool BL_HasFH(struct Object* blenderobj); 00024 00025 struct Object* BL_GetRootParent(struct Object* blenderobject); 00026 struct Object* BL_GetParent(struct Object* blenderobject); 00027 #endif //__KX_BLENDERORIENTATION_H