I find it rude to assume the other developers on this site can be used as a tool, where you just ask for something and immediately expect it to be laid out infront of you with no learning curve.
I cant express with words, how simple it is to implement collision. You dont want sliding collision? Here:
SYNC ON:SYNC RATE 0:AUTOCAM OFF:HIDE MOUSE
MAKE OBJECT CUBE 1,10
MAKE MATRIX 1,1000,1000,10,10
MAKE OBJECT BOX 2,100,200,300
POSITION OBJECT 2,200,0,500
POSITION CAMERA 0,200,-300
DO
ox# = OBJECT POSITION X(1)
oy# = OBJECT POSITION Y(1)
oz# = OBJECT POSITION Z(1)
MOVE OBJECT 1, (UPKEY()-DOWNKEY())*0.5
TURN OBJECT LEFT 1, (LEFTKEY()-RIGHTKEY())*0.5
nx# = OBJECT POSITION X(1)
ny# = OBJECT POSITION Y(1)
nz# = OBJECT POSITION Z(1)
collisionDistance# = INTERSECT OBJECT(2, ox#,oy#,oz#,nx#,ny#,nz#)
IF collisionDistance#
POSITION OBJECT 1, ox#,oy#,oz#
ENDIF
SYNC
LOOP
Take away the variable definition and all the cosmetics from that program, and the collision code is only 3 lines. Dont like ray casting?
SYNC ON:SYNC RATE 0:AUTOCAM OFF:HIDE MOUSE
MAKE OBJECT CUBE 1,10
MAKE MATRIX 1,1000,1000,10,10
SET OBJECT COLLISION ON 1
MAKE OBJECT BOX 2,100,200,300
POSITION OBJECT 2,200,0,500
SET OBJECT COLLISION ON 2
POSITION CAMERA 0,200,-300
DO
ox# = OBJECT POSITION X(1)
oy# = OBJECT POSITION Y(1)
oz# = OBJECT POSITION Z(1)
MOVE OBJECT 1, (UPKEY()-DOWNKEY())*0.5
TURN OBJECT LEFT 1, (LEFTKEY()-RIGHTKEY())*0.5
IF OBJECT COLLISION(1,2)
POSITION OBJECT 1, ox#,oy#,oz#
ENDIF
SYNC
LOOP
The problem here, is that you're expecting programming to be point and click. If thats what you want, get the 3D Game Maker or FPSC. If, however, you'd like to actually program, you need to use a thing called code. Whether you waste a bunch of money on NGC (which has been proven to be just as fast/efficient as sparky's dll), or decide to do the smart thing and use the excellent free plugin,
you're still going to have to learn the syntax of the commands.
To sum up;
Option A) Buy NGC, and then get frustrated and make a post asking how to achieve collision with it.
Option B) Stop programming, switch to something like The 3D Game Creator/Maker.
Option C) Take the hour or so that every programmer does to look into learning how to use the extremely well documented commands that come with the free plugin Sparky's Collision dll.
Option D) If all you want is sticking collision (which Im almost sure you posted just to try to make me seem wrong in saying sliding collision, as sticking collision usually makes games horrible), do a search on the forums, there are literally hundreds of threads.
And finally, Id like to point out once again (since I can pretty much guarantee you didnt do a search yet), the thread I made has mini-tutorials on getting sliding and bouncing polygonal collision detection working with sparky's collision dll. NBot to mention Kensupens code snippet, G-Man and Lost in Thought's code snippet, and a few other people whom I forget the name's of's code snippets, all cover getting sliding collision working without any plugins at all, just using DBP native commands.
But sure, please, waste your money. Its the smart thing to do.
- RUC'