Need some math help?
I see I have a dbDotProductVector3 function, but nothing for zBassis rotation or such. So I attempted this..
findObjectByID(hit) being my door
m_player beging my player
//zbassis for player
float zP2 = dbCos(m_player.getZ()) - dbSin(m_player.getAngleX());
float xP2 = dbSin(m_player.getZ()) + dbCos(m_player.getAngleX());
float yP2 = m_player.getY();
//zbassis for door
float zD2 = dbCos(findObjectByID(hit).getZ()) - dbSin(findObjectByID(hit).getAngleX());
float xD2 = dbSin(findObjectByID(hit).getZ()) + dbCos(findObjectByID(hit).getAngleX());
float yD2 = findObjectByID(hit).getY();
//vectors
Vector3 player_zBassis(xP2,yP2,zP2);
Vector3 door_zBassis(xD2,yD2,zD2);
float fDotProduct = dbDotProductVector3 (player_zBassis.getID(),door_zBassis.getID());