Jump to content

Some questions regarding the controller


Raul
 Share

Recommended Posts

When I was learning Leadwerks and C++ I have started a little project (a FPS)

 

In my player class I have a void:

void cPlayer::CreatePlayer()
{
//controller
PlayerController=CreateController(1.8,0.45,0.3,46);
EntityType(PlayerController,1);
SetBodyMass(PlayerController,100);
.
.
.
}

 

Now I am trying to translate this one in C#:

 

I used:

   class cPlayer
   {
       Controller playerController = new Controller(1.8f, 0.45f, 0.3f, 46f);

       public void createPlayer() 
       {
           //controller
       }
   }

 

Now I should call the EntityType and SetBodyMass functions. But if I call Core.EntityType I receive the IntPtr error. How should I manage this one?

i5 2.7Ghz, GTS 450, 8GB Ram, Win7 x64; Win8 x64

rvlgames.com - my games

RVL Games Facebook Page, YouTube Channel

 

Blitzmax :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...