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 / Collision for .3DS MODEL

Author
Message
gopherbro 94
16
Years of Service
User Offline
Joined: 21st Dec 2008
Location:
Posted: 30th Apr 2009 22:35
how can i make a collision box for a .3DS model. I am trying to get my player collide with the tree.


Player
REM OBJECT CREATION

Rem Player Character
make object cylinder 1,50
scale object 1,100,140,100
texture object 1,1
position object 1,0,35,0
make object collision box 1,-25,-35,-25,25,35,25,0

make object cylinder 99,50

make mesh from object 1,99
delete object 99

add limb 1,1,1
offset limb 1,1,0,25,0
scale limb 1,1,100,1,100
texture limb 1,1,99

TREE MODEL
Rem Trees

load object "tree.3ds",97
position object 97,Rnd(1900)-950,0,Rnd(1900)-950
scale object 97,2400,1600,2400


I need to know how to make the collision box for the tree and what to use to check for the collision. If you can I need answers fast!!!!!!
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 30th Apr 2009 22:59
SET OBJECT COLLISION TO BOXES should work in addition to using the OBJECT COLLISION setup

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 1st May 2009 01:45
also to save space use the code button above the post message text field to put all ur code in a box like this:



either copy all ur code then highlight it and hit the button or press the button, paste the code, then hit it again

There are only 10 kinds of people in the world, those who understand binary and those who dont

Login to post a reply

Server time is: 2025-06-08 05:45:13
Your offset time is: 2025-06-08 05:45:13