Jump to content

Problem with Leadwerks 3 tutorial #5_ Flying and Spectator camera


Recommended Posts

Posted

Hi,

 

I am coding in C++ and want to implement a flying camera with collision like explained in Aggror's tutorial.

http://www.leadwerks.com/werkspace/page/tutorials_legacy/_/free-and-spectator-cameras-r12

 

I want to increase the flying speed but when i increase it to a value which I like, I have the problem that the camera is not always in the middle of the sphere but behind it, so that the sphere becomes visible. sad.png

(See attached Screenshot) Does someone has an idea about what could cause this behavior?

 

The camera has a momentum (which i try to stop using SetVelocity()). Since this is not mentioned in the tutorial it could be something wrong with that?

 

 

fail.png

 

Any hints?

TIA

Posted

Do you mean the flying speed during Flyingmode or spectatormode?

 

First step you can take is applying the invisible material to your sphere, so that you don't see it. Ofcourse this doesn't solve the problem of the camera actually being at the wrong place.

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.

×
×
  • Create New...