5,455 questions
Configuring First-Person Camera in SlimDX and Assimp
Garrett Tiller
6
Reputation points
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
Sign in to answer