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 Professional Discussion / Problem with Collision Radius

Author
Message
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 28th Oct 2002 10:45
As my game contains balls I thought that 'set object radius' was a godsend, but I can`t get it to work.
In this example you can make the sphere bigger or smaller using the up and down keys, no matter what you set the object radius to it makes no difference to when it collides with the cube, also the 'object collision radius()' seems to get a number linked to the object scale rather than anything else.
Changing the initial size of the sphere, its position, the scaling, or the radius all seem to have no effect on the collision detection.
Is this just me, am I doing something wrong or is this a bug?

Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 1st Nov 2002 11:16
It seems I am on my own with this one, given that I have not had a single reply yet {sigh}
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 19:00
seems to work here, what is exactly your problem?

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 21:51
It does seem to record a collision where is shouldn't.

This is using a collision radius of 10 :

[img]i:\pic1.jpg[/img]

And the other is 1000 :

[img]i:\pic2.jpg[/img]

Both initiate a collision at the same place (more or less).

Yes, I really am THAT good...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 22:26
Ah - the pictures didn't come through; probably because I kept getting a run-time error when select the imb button.

You'll just have to take my word for it...

Yes, I really am THAT good...
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 22:29
you have to upload the images, then paste the url into the reply area, then select the url and press the img button for it to work.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 22:35
Upload to where ?

Yes, I really am THAT good...
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 22:38
to webspace

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 1st Nov 2002 22:47
ah - that'll have to be later then...

Yes, I really am THAT good...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Nov 2002 12:32
Hopefully this should bring some pictures up...





Yes, I really am THAT good...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Nov 2002 12:33
Try again...



Yes, I really am THAT good...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Nov 2002 12:33
And the second picture :



Details as per my orginal post.

Yes, I really am THAT good...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Nov 2002 12:35
As you can see, there is an (incorrect) collision at the space point for both radiuses; this certainly needs looking at as correct collision reporting is very important.

Yes, I really am THAT good...
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 4th Nov 2002 14:55
Thanks for checking this out, I wanted to make sure it was not just me.

This basic problem goes back to DB, where I found that spherical collision used on a sphere always detected too large an area, it does the same in DBPro.

The problem here is more than that though, you can set the object radius (which should set the collision spheres radius) to anything you like, and it still detects the collision at exactly the same point, try 0.1, then try 1000, no change!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Nov 2002 15:08
Yes, thats why I included the two pictures to show that there isn't any difference with the set radius command.

Yes, I really am THAT good...
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 4th Nov 2002 15:22
Oh yes, sorry. %S
Lee Bamber
21
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 15th Nov 2002 02:57
Fixed for patch 3 - Due end of November

Login to post a reply

Server time is: 2024-03-29 12:33:46
Your offset time is: 2024-03-29 12:33:46