Jump to content

jump issue with C++ tuto "Making a First Person Camera"


Laurent (Steamlead)
 Share

Recommended Posts

Hi everyone,

 

I'm trying to become familiar with LE3 and right now I'm Studying the C++ tutos.

 

But I've got a problem with the jumping action in the "Making a First Person Camera" tutorial.

 

After jumping, my character stays in the air until a position update occurs (by moving my character for example). It occurs with my own code and even with the code given in the page (http://www.leadwerks.com/werkspace/page/tutorials/_/making-a-first-person-camera-r15 )

 

Is it a bug in Leadwerks 3.0 ?

 

Another question:

I'm used to code using C++ and I ask myself if there is a way to use C++ in the actual version of LE 3.1

The lack of class mechanism in LUA is really a problem for me

 

thanks for your help

(and special thank to aggror for its work)

Link to comment
Share on other sites

As I said, I haven't done something special.

 

I use my own code, or the code found in the page specified above

I compile and run the project in VS2010

 

All runs well except when jumping: the character stays in the air during 2 or 3 seconds or until I move it using WSAD keys.

 

It looks like a synch or refresh problem, but I'm not sure.

 

I'm using the Leadwerks 3.0 trial version.

Link to comment
Share on other sites

until 3.1 is released you could move it every frame 0.000001 cm forward with player->PhysicsSetPosition() (or player->Input() ) don't know what i used

and every second frame move it 0.000001 to the back, it will cause physics update (isn't a good solution, i know :P, but it's working until 3.1 is out) ;)

C++ :3

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...