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.

DarkBASIC Discussion / NGC 1.5 Problem

Author
Message
AuzingLG
21
Years of Service
User Offline
Joined: 19th Sep 2003
Location:
Posted: 3rd Apr 2004 15:08
Hi!
I decided to use the free Nuclear Glory Collision DLL 1.5.
But I'm having problems with it.

At first, I call UpdateSlidingCollision.
Then I position the camera to the new position values (NewPlayer*)

But when I start the game, the camera is in my level! (I enabled AUTOCAM before loading the level).
Please help me.

Please wait. Loading sick nature...
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Apr 2004 23:18
The first thing I would do is get NG 2.03, it's worth the $15, honest!

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 4th Apr 2004 02:25
Most folks turn autocam off and manually place the camera to get better control over it.
--
TAZ

code master
21
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 7th Apr 2004 02:52
what does auto cam do

dbc 1.13 non enhanced oh and im 11 didnt know that did ya?
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 7th Apr 2004 03:07
1.5 eh?

OK, the dll works by checking the vector from the OldPosition to the NewPosition against the CollisionMesh. If a collision is detected it will send back the new position as it would be if you were sliding against the walls as you hit them.

So...its your (codes) responsability to have an old position which you store, then calculate your new position (where you'd like to be based on user input) and send that lot through to the dll. It will then return the (adjusted) newposition back to you.

So - look at your code - are you playing ball with that? You need somthing like this (psuedo code)

Setup vars
do
Store old position (oldPosX, Y & Z)
get user input
Calculate new position based on input (NewPosX, Y & Z)
Send old & new positions to the dll
Actually put your camera/object at the position the dll specifies
sync
loop

"My ignorance amuses me..."
http://www.victory-road.co.uk
zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 7th Apr 2004 21:57
autocam means the camera will automatically look at any new object created.

dont for get you have to pass the collision mash into the dll (or smothing like that) at the start of the level. this is done in the example using a function called load collision object.

www.zaneproductions.tk - lots of games, no Dark basic ones though (yet)!

Login to post a reply

Server time is: 2025-05-23 07:07:17
Your offset time is: 2025-05-23 07:07:17