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.

Dark GDK / Collision mistake

Author
Message
Tiborko
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location: In front of computer
Posted: 14th Jun 2009 16:10
Hello people,

I'm trying to understand sparky's collision, and made a small program, but something is wrong...
I studied this forum, and found some results, but when I compare my program with theirs, it seems nothing is wrong, so I couldn't find a mistake. I'm just a beginner, so I'll put my code here for someone to get it corrected... Thank you.



Repetitio est mater studiorum!
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 14th Jun 2009 16:25
What exactly is the problem?

Tiborko
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location: In front of computer
Posted: 14th Jun 2009 16:39 Edited at: 14th Jun 2009 22:04
Just run the program. x-axis is alright. But, at z-axis, character cannot pass cube's x-coordinate, no metter where it is... Actually, it can move only on z-axis(right and left), and can't go forwards or backwards, just slides to the side...

Repetitio est mater studiorum!
Tiborko
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location: In front of computer
Posted: 15th Jun 2009 13:06
Anyone? Please, can someone write a simple program where sphere collides with a box, and with using dbSetCameraToFolloW() command?

Repetitio est mater studiorum!
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 15th Jun 2009 13:25 Edited at: 15th Jun 2009 13:36
Double posting is not appreciated nor is anyone going to write you a program unless they don't have anything to do.

On the up-side i'll give you this just to be a nice guy.


Make sure to declare these variables:


mtype: 1 = forward, 2 = backward, 3 = strafe left, 4 = strafe right.

A special note:
Set mtype to 0 when you want to apply vertical gravity to the player ex: make him fall to the ground.


EDIT: That code is my old collision xD my new function is much better

Login to post a reply

Server time is: 2024-11-05 23:25:09
Your offset time is: 2024-11-05 23:25:09