So I'm using a Raptor that was included in the DGDK Media Files.
The problem is that for some reason the front of the Raptor is defined as its tail -_-
So I need it to point to the camera and move towards the camera every update, but instead, the tail point to the camera and it only moves sideways...
Below is the CPP of the Monsters Class.
#include "Monsters.h"
Monsters::Monsters(int MonsterID)
{
Monsters::MonsterID = MonsterID;
Monsters::MonsterHealth = 10;
dbLoadObject ( "M-Raptor-Static.x", MonsterID );
dbScaleObject(MonsterID,1000,1000,1000);
dbPositionObject(MonsterID, 100,1, 100);
dbRotateObject(MonsterID,0,180,0);
}
void Monsters::MonstersUpdate()
{
Monsters::MonsterHeight = dbGetTerrainGroundHeight( 1, dbObjectPositionX(MonsterID), dbObjectPositionZ (MonsterID ) );
dbPositionObject(40, dbObjectPositionX(40),MonsterHeight, 100);
dbPointObject(40,dbCameraPositionX(),MonsterHeight,dbCameraPositionZ());
dbMoveObject(40,1);
}