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.

DarkBASIC Discussion / Good Coders Come Here

Author
Message
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 1st Sep 2005 07:20 Edited at: 1st Sep 2005 19:49
I'm having trouble:

I have a rectangle rotate so that it's like a ramp, but the object collision box doesn't rotate with it!

Help please?

If you don't know, at least tell me some 3D maths I can do, because polygon collision is way too slow.

Thanx.

--------------
Uncle Sam
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 1st Sep 2005 19:49
Wait a minute, I found a way to make it rotate, but it doesn't detect ANY collision now!

--------------
Uncle Sam
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 1st Sep 2005 21:37
Was that you on the newcomers forum???

Anyway, sliding collision AND rotating collision box won't work together. The only solution is mathematical search for collision.

Immunity and Annihalation makes Immunihalation...
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 1st Sep 2005 23:31
I don't want sliding collision.

--------------
Uncle Sam
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 2nd Sep 2005 19:51
Then it's probably better to use the commands
set object collision to boxes objnr
set object collision to spheres objnr
set object collision to polygons objnr

It should support rotation. Use the polygons to have a very accurate collision detection. But remember, it'll slow your program down.

Immunity and Annihalation makes Immunihalation...
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Sep 2005 23:08
You didn't read my first post.

I DON'T want poly collision, and I want to be a ble to rotate an objects collision box.

And what do you mean newcomers forum; I am a professional, and have almost completed a command, object top y, that allows you to find the top position of an object at the specified position, so you can make your player walk up ramps and such.

--------------
Uncle Sam
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 2nd Sep 2005 23:35 Edited at: 2nd Sep 2005 23:38
Oh please. For one thing, 'professional' merely means that you were paid to do it, and is no guarantee of quality.

Also, you have not read Sven B's post - At no point did he say that you should use poly collision, he just said what it should be used for along with its advantages and disadvantages.

He also said this:

set object collision to boxes (object number)

TRY IT.

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 3rd Sep 2005 00:40
I did, but it's too slow.

I guess I'm not really a professional, but at least I think I'm pretty talented.

Sorry for the misunderstanding. I was just defending myself, because he said I was a newcomer.

I thought that when you make an object collision box, it's supposed to work, but the collision detection no longer works when I change it to that.

--------------
Uncle Sam
Lzdude69
21
Years of Service
User Offline
Joined: 21st May 2004
Location: Indiana
Posted: 3rd Sep 2005 04:24
how can you be a professional and not be able to figure out collision?

I'm too lazy to type anything here...
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 3rd Sep 2005 04:58
(Read's Title)
(Realizes that he is asking ME to come but it would be mean to say just my name )

I'm here! Good coder is here!


Oh god darnit, Sven B beat me to what I was going to say!


Just kidding.
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 3rd Sep 2005 06:17
Lzdude69: I was just being sarcastic, and who said professionals don't ask questions now and then?

So can someone answer mine?!


PLEASE!

--------------
Uncle Sam
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 3rd Sep 2005 06:22
Proffessionals are what they are because they asked questions. Not just to others, but in their minds.



+NanoBrain+
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 3rd Sep 2005 13:04
maybe put a 1 after the command:
make object collision box objnr,x,y,z,x2,y2,z2,1

It means that the collision box will be a rotating collision box. But sliding collision data cannot be used when set to 1.

Immunity and Annihalation makes Immunihalation...
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 5th Sep 2005 02:14
I did, and it did not detect any collision at all!

--------------
Uncle Sam
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 5th Sep 2005 08:08
Look into the Nuclear Collision DLL. You will save yourself many headaches.


Click here to join our forums and get updates on game progress sooner!
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 5th Sep 2005 08:35
I don't like using other people's code, unless it's for particles or something.

--------------
Uncle Sam
Drew Cameron
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 5th Sep 2005 11:35
Listen to the man.
Nuclearglory.

P.S - A profesional does not neccesarily have to get paid.

Katie Holmes is back!

Login to post a reply

Server time is: 2025-05-22 09:04:15
Your offset time is: 2025-05-22 09:04:15