Page 1 of 1

Wishlist for PB

Posted: Mon Aug 04, 2003 4:11 pm
by kcraft
I've been working with a friend on a 3D game using PB and have come to a stand still. Our menuing system is complete, PureBasic does an awesome job with the speed in switching between menu options. (MUCH faster than DarkBasic, and we set the menu system up very similar to the one we did with DB). The following is one function that we would love to see available.


CalculateGravity(): Just something to tie the camera to a location above the ground and move it according to ground height. I thought this was a lot easier than it looked, but I am wrong.

I understand you are working on Collisions, and don't see a need to post all of that for a wish list. We are just waiting for the next release.

thanks.

Posted: Mon Aug 04, 2003 4:56 pm
by LarsG
I haven't tried this, but what you might want to do, is to read the TerrainHeight(x,y) at the player coordinates, and adjust the CameraY value so that it's always X units above the terrain...

-Lars

Thank you

Posted: Mon Aug 04, 2003 5:21 pm
by kcraft
I will try that when I get home today. I had originally tried something to that effect, however didn't use the CameraY function. I used the movecamera(camera#, x, y, z) function. I think you are right on this one, as the problem I was having was either the camera went straight up, straight down, or didn't go at all. :-)

I'll post on the game programming forum if it works.

thanks again

Posted: Mon Aug 04, 2003 8:48 pm
by Num3
The terrain example uses the technique Lars mentioned...

Give it a try!

DOH!

Posted: Wed Aug 06, 2003 4:36 am
by kcraft
I feel dumb now. Thats exactly what I was looking for. I must have been looking at a different example for this, its not listed in the first example I have.

Posted: Wed Aug 06, 2003 1:46 pm
by Karbon
Nah, dumb is looking for your car keys for 15 minutes WHILE HOLDING THEM IN YOUR HAND - like I just did :-)

I have such blonde moments sometimes I think I'd lose my head if it wasn't attached tightly.

Posted: Wed Aug 06, 2003 3:08 pm
by LarsG
LOL@Karbon