3D problems

  • Thread starter Thread starter crappydude123
  • Start date Start date
C

crappydude123

Guest
I keep getting these errors in these codes


m_camera = ref new Camera;
m_camera->SetProjParams(XM_PI / 2, 1.0f, 0.01f, 100.0f);
m_camera->SetViewParams(
XMFLOAT3 (0.0f, 1.0f, 0.0f), // Eye point in world coordinates.
m_playerOne->Position() +
m_playerTwo->Position(), // Look at point in world coordinates.
XMFLOAT3 (0.0f, 1.0f, 0.0f) // The Up vector for the camera.
);

E0304 no instance of overloaded function "Boxer::Position" matches the argument list


__forceinline void Player::Active(bool active)
{
m_active = active;
}

__forceinline bool Player::Active()
{
return m_active;
}

__forceinline void Player::Velocity(DirectX::XMFLOAT3 velocity)
{
m_velocity = velocity;
}

__forceinline void Player::Velocity(DirectX::XMVECTOR velocity)
{
XMStoreFloat3(&m_velocity, velocity);
}

__forceinline void Player::Position(DirectX::XMFLOAT3 position)
{
m_position = position;
Update();
}

__forceinline void Player::Position(DirectX::XMVECTOR position)
{
DirectX::XMStoreFloat3(&m_position, position);
Update();
}

__forceinline void Player::Radius(float radius)
{
m_radius = radius;
Update();
}

__forceinline float Player::Radius()
{
return m_radius;
}



E0413 no suitable conversion function from "DirectX::XMFLOAT3" to "float" exists
E0167 argument of type "float *" is incompatible with parameter of type "DirectX::XMFLOAT3 *"

Continue reading...
 

Similar threads

Back
Top