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
Jurgen
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 7th Jun 2003 19:38
hi there again,
I created a ramp with hammer and the bsp is loading as it should, for collision detection I created a cube (2,50) but when I walk up the ramp the camera only goes up, so NOT DOWN AGAIN, pretty anoying when playing your game

So what I need is some sort of gravity, that could be done in a matrix:
--------------------------------------------------------------------

height#=get ground height 1,camera position x(), camera position z()
position camera 0,camera position x(), height#+2, camera position z()

--------------------------------------------------------------------

Still hanging with me? This code works for I have tested it, it measures the ground height and ads 2 points to it so that you don't stick on the floor.

But a BSP map isn't a matrix, how could I achieve a similar effect??
"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 7th Jun 2003 20:04
Reposition your collision box down in the same way you do in your example - the collision detected will detect the floor just as readily as a wall.

Pneumatic Dryll
Jurgen
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 7th Jun 2003 20:40 Edited at: 7th Jun 2003 20:44
I don't think you understand, that command only works on a matrix, not a BSP map.....
But you did give me an idea, I could place the camera 2 units above the cube, when the cube hit the ramp it'll go up AND SO WILL THE CAMERA !!!!

edit:

Yup, my idea (actually yours) worked, I allways have a fine height

"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."

Login to post a reply

Server time is: 2026-07-11 11:06:25
Your offset time is: 2026-07-11 11:06:25