1 #include "..\include\raMain.h" 12 D3DXMatrixScaling((D3DXMATRIX*)&
m_scale, scale.
x, scale.
y, scale.
z);
17 D3DXMatrixIdentity(&m);
39 D3DXVec3Normalize((D3DXVECTOR3*)&direction, (D3DXVECTOR3*)&direction);
57 if(D3DXVec3Length((D3DXVECTOR3*)&direction) <=
m_speed)
85 D3DXVec3Normalize((D3DXVECTOR3*)&direction, (D3DXVECTOR3*)&direction);
92 D3DXMatrixLookAtRH((D3DXMATRIX *)&m, (D3DXVECTOR3*)&m_Position, (D3DXVECTOR3*)&
m_destination, (D3DXVECTOR3*)&up);
93 D3DXMatrixInverse(&invView, NULL, &m);
109 if(D3DXVec3Length((D3DXVECTOR3*)&direction) == 0) direction.
x = 1;
110 D3DXVec3Normalize((D3DXVECTOR3*)&direction, (D3DXVECTOR3*)&direction);
void SetAnimation(UINT clip)
void TakeHit(raGameCharakter *pOther)
void SetSelected(bool bSelected)
void Update(double fTime, float fElapsedTime)
void SetFollow(raGameCharakter *pOther)
raGameCharakter(raGame *pGame, UINT team, raVector3 position, raVector3 destination, raVector3 scale=raVector3(1, 1, 1))
void SetDestination(const raVector3 &destination)
raGameCharakter * m_pFollow