Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Alpha skull
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location:
Posted: 11th Aug 2009 12:02
I need help with my engine. I have included the source so you can see what i am doing.

I want the camera to have collision with objects and move around/jumping when noclip=0.

That would be great if someone could please help me.

You cannot use any of my engine for your own project unless you help me with this or have my permission.

I will be very greatful if someone helps.



The part I need help with is in bold

Hey people. Im new to dark basic professional and dark physics. Please help me if you can
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 18th Aug 2009 15:30
have you tried using dark AI to handle the camera?

you could set it to side step out of the way of objects, and still follow the player.

3rd person camera

use the AI object as the camera, and
and position the camera at the same location as the AI object, hide the AI object and there you have it a basic camera that follows / moves out the way of objects.

1st person camera

if you get cliping in your fps camera just set the camera to the position of the player, then set it back 2/3 units, example
now that wont work but it gives you the idea.

a more helpful way is to


Quote: "The Front Value specifies the closest point beyond which the camera starts to draw the 3D scene. The Back Value specifies the furthest point beyond which the camera stops drawing the 3D scene. The parameters must be specified using real numbers greater than zero. The default range starts drawing the 3D scene with a front value of 1 and a back value of 3000. "


this may or may not fix this, it is only a miner tweak.

or you could set your collision area to be a bit bigger, hope some of this helped.

soul sucking devils, twisted body of the damed, slivering slim drips from every poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!
Alpha skull
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location:
Posted: 25th Sep 2009 10:29
Yeah, i dont have dark ai yet aye lol

Hey people. Im new to dark basic professional and dark physics. Please help me if you can

Login to post a reply

Server time is: 2024-11-24 16:28:00
Your offset time is: 2024-11-24 16:28:00