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 / doors in a wall

Author
Message
sjonny
18
Years of Service
User Offline
Joined: 25th Nov 2006
Location: darkbasic classic
Posted: 28th Nov 2006 08:05
how can you make doors in a wall, i have the collision now but at a certain point you need to go through a door. how can you make it like that?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Nov 2006 08:23
if your using the inbuilt collision you could deploy a command to turn off the collision.
usually however a door swings open or slides open etc.. moving it will open the space and allow you to enter.

sjonny
18
Years of Service
User Offline
Joined: 25th Nov 2006
Location: darkbasic classic
Posted: 28th Nov 2006 08:47
how can you open it? by pressing a button when it is close to the door?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 28th Nov 2006 10:07
You will need to know the 3D location of the door, if the door is a limb, then using the limbs returned 3D location would be an idea, or if it's an object then using the object position.

If you use limbs, then it's easy to get them in place, then orientate each pivot at the hinge, and you'd have perfect doors that can be opened with simple Y angle adjustments, and checked with exact 3D positions.

''Stick that in your text and scroll it!.''
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Nov 2006 10:29
a distance function is great for doors, it can be used to close it automatically behind you.

Login to post a reply

Server time is: 2025-05-26 03:15:31
Your offset time is: 2025-05-26 03:15:31