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.

Newcomers DBPro Corner / player collison with wall

Author
Message
Unknown Atom
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location:
Posted: 7th Sep 2004 02:36
hi, i want my player to beable to collide with a wall and stop him from going through it, how do i do this?

thx
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 7th Sep 2004 06:52
look into the nuclear glorry collision dll, its easy to use and it takes care of all your collision needs http://nuclearglory.com/

or you can use dark basics built in collision which isnt that great but overall look at tutorials/code other people have written ie: goto the codebase youll learn alot from there


Hop a long
20
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 8th Sep 2004 12:07 Edited at: 8th Sep 2004 12:08
Hi Atom,
You can use sliding collision. You will need to make a collision box for your player object and the objects it can not pass thorugh.
If all these objects are irregular shapes you can get their dimensions by using the Object Size commands for the x,y and z axis.
If they are cubes, then no problem since you made them you know the sizes. Here is a simple example of the basic sliding collision routines. No frills.
http://www.geocities.com/hifin2003/sliding-collision.html
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Sep 2004 08:08
It's certainly not necessary to use NG for something as simple as this

Stop-collision


Sliding Collision:


The sliding collision code needs a bit of work, but that would over-complicate the code and detract from what it is - a simple example.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Sir Spaghetti Code
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 9th Sep 2004 13:37
Also, chack out this free collision set:
http://forum.thegamecreators.com/?m=forum_view&t=31051&b=5

Although I am partial to NGC.


"What is a game if not illusions stacked upon illusions?"
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 12th Sep 2004 19:32 Edited at: 12th Sep 2004 19:33
Quote: "You can use sliding collision. You will need to make a collision box"


No you dont have a look at my collision engine:

http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0


i guess that is what you want

Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0

Login to post a reply

Server time is: 2024-09-23 00:32:35
Your offset time is: 2024-09-23 00:32:35