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 / Command for parent child relationship?

Author
Message
paopow
23
Years of Service
User Offline
Joined: 11th Oct 2002
Location:
Posted: 1st Nov 2003 08:05
Is there a command for parent child relationships for objects?
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Nov 2003 08:16
in the sense that I think you are thinking of them....no. DB/c/p is in no way OOP aside from UDT's which are barely OOP.

Unless you mean an object and a limb-then I have no experience yet with such matters

-RUST-
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 1st Nov 2003 19:18
The "GLUE" command creates the parent child relationship see "GLUE BLUE" thread

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
paopow
23
Years of Service
User Offline
Joined: 11th Oct 2002
Location:
Posted: 2nd Nov 2003 01:38
What I want is pretty much want is a way to attach an object to another object. So if I attach a cube to a sphere, the cube is a child and the sphere is the parent. If I rotate the sphere, the cube also rotates because it is based on the local coordinates of the sphere.

I say that there was an attach object command but the help page for it is gone. I thought perhaps it's been removed from DBP.
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 2nd Nov 2003 04:23
PaoPow
The command used in DBPro is Glue see the thread on this forum "Glue Blues" It does exactly what you describe

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
paopow
23
Years of Service
User Offline
Joined: 11th Oct 2002
Location:
Posted: 2nd Nov 2003 06:55
cool.. thanks Codger

Login to post a reply

Server time is: 2026-07-26 13:02:09
Your offset time is: 2026-07-26 13:02:09