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.

Dark GDK / binding ship (object) and flame (billboard) position

Author
Message
aaron360
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 20th Jun 2008 15:26
hi guys, i am developing a game and here is my problem,

may space ship needs a flame for its booster, i made a 3d billboard for that (image is from tobi453 from his star wars game), but my big problem is positioning the billboard WHEN THE SHIP IS ROTATED in X angle.

Is there a code that would automatically bind the two objects together? is this process possible??

1. position ship
2. position billboard
3. bind ship and billboard position
4. moving ship automatically moves the flame


well if there is no other way, i have my backup plan, math functions.

dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 20th Jun 2008 15:49
dbGlueObjectToLimb()?

programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 20th Jun 2008 16:06
Quote: "dbGlueObjectToLimb()?
"

Yeah, that would work if the model had limbs. if it does, then that is the command to use.

Your signature has been erased by a mod - 120 high maximum please
aaron360
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 20th Jun 2008 16:08
im sorry but there are no limbs on the model, thank you for the reply though, anyone has an idea? or im going to pursue my math function?
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 20th Jun 2008 16:10
But since every object in GDK has a limb, be it limb 0 or upward he won't have any problems .

aaron360
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 20th Jun 2008 16:13
can you give me some snippets on how i could do this mr. dark coder?

i'm sorry, my posts are a bit delayed, i am an new member of this forums and they review my post first before displaying it to the thread.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 20th Jun 2008 16:20
good point, good point.... Ok, yeah, ignore what i said.
I think that solves the problem!

Your signature has been erased by a mod - 120 high maximum please
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 21st Jun 2008 01:52
Something like this:



aaron360
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 21st Jun 2008 06:40
thank you very much for the code snippet! it helped a lot.

but there's another problem, i can't use the dbPointObject once i glued the billboard to the object,

when the object is viewed sideways, i can't see my billboard, any help? thank in advance

Login to post a reply

Server time is: 2024-09-29 23:27:44
Your offset time is: 2024-09-29 23:27:44