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 / Does col to boxes work?!

Author
Message
Oliver
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 15th Oct 2004 16:50 Edited at: 15th Oct 2004 18:40
For the command SET OBJECT COLLISION TO BOXES, the help file says:

"An invisible collision box will be used for every limb in the object."

Is this true? I would like to load one object with limbs, and have a collision box around each limb. It appears that it doesn't work though.

Has anyone successfully got this to work?

Thanks in advance

[edit]

Heres some more information, when i use SHOW OBJECT BOUNDS it draws boxes around the limbs of the object correctly. When I count the number of limbs with PERFORM CHECKLIST FOR OBJECT LIMBS it counts them correctly. I have collision working for individual boxes but it doesn't work with one object + limbs.

[edit 2]
I've attached the project files, could someone have a look at it, thanks.

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Oct 2004 23:07
It worked for me back in the Alienware compo. However, inbuilt collision really is pants.

I now use Nuclear Glory collision (http://www.nuclearglory.com), and it's highly recommended.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
OldTifu
21
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Scotland
Posted: 16th Oct 2004 03:28
For an object with limbs, woudln't you be better with polygonal collision rather than box? I would have thought box collision would just set up one huge box around the whole object (limbs included) rather than several boxes for each limb (unless I mistaken)
Oliver
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 16th Oct 2004 18:01 Edited at: 16th Oct 2004 21:18
Yup it does seem to make only one box around the whole object, i've had another idea as to how to work around it though. And I prefer to code my own collision, it gives you more control over it or else I would use NG. Anyway, thank you.

[edit]

Next question, is there any way to return the size of a limb just like the command OBJECT SIZE X() but for limbs?

Thanks
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Oct 2004 22:15
I don't believe so. What you could do instead is to create a new object from the limb (MAKE OBJECT FROM LIMB) and then get the size of that object.

Don't delete that temp object though, just hide it and move it outside of you game world. Deleting objects can give quite a performance hit.

*** 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

Login to post a reply

Server time is: 2024-11-27 12:36:59
Your offset time is: 2024-11-27 12:36:59