Configuring First-Person Camera in SlimDX and Assimp

Garrett Tiller 6 Reputation points
2024-10-28T17:52:09.8766667+00:00

I'm developing a first-person shooter using SlimDX and Assimp, but I'm encountering some issues while trying to connect the camera and player classes. Below are the relevant code snippets:

private GameplayScreen(IntPtr hInstance)
    : base()
{ 
    //Enable4xMsaa = true;
    _camera = new FpsCamera
    {
        Position = Player.Position()
    };
}
private Player(IntPtr hInstance)
    : base()
{ 
    //Enable4xMsaa = true;
    _player = new SkinnedModel
    {
        Position = new Vector3(0, 2, -15)
    };
}

I'm facing the following errors:

Error CS7036: There is no argument given that corresponds to the required parameter 'device' of 'SkinnedModel.SkinnedModel(Device, TextureManager, string, string, bool)'
Error CS1955: Non-invocable member 'Player.Position' cannot be used like a method.

Any guidance on how to resolve these issues would be appreciated.

Developer technologies | Visual Studio | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.