Jump to content
  • Advertisement
Sign in to follow this  
fitfool

First Person Shooter: Newton SDK

This topic is 3790 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, im coding a FPS using Irrlicht and the Newton SDK. Irrlicht's native fps camera isnt going to do, so im going to have to implement my own via Newton. How should i go about doing this? Should i create a Ellipsoid around the camera and somehow, prevent it from 'falling over'? thanks

Share this post


Link to post
Share on other sites
Advertisement
Method 1: Try using the custom charactercontroller that comes with the SDK and disabling the gravity.

Method 2: For each frame, cast a ray from the current position of the camera to the position it wants to be in. If that ray collides with something, act accordingly.

You may find, however, that for a first person camera, the camera won't be able to go into the geometry because the character wont be able to get close enough. Again, check out the charactercontroller demo for this.

For more information, why not sign up on their forums?
Clickzor

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!