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 / [DarkGDK.NET] Limbs

Author
Message
Yoda Master
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location: Genova
Posted: 10th Dec 2008 12:11 Edited at: 10th Dec 2008 17:31
Hi all,

I'm porting my card game to the new version of DarkGDK.NET but I've encountered a problem during the conversion of my limbs code.

I want to have a plain object attached to another plain object to create a card. With the previous version I used the GlueObject method but now I'm a bit confused about the new limbs methods because the limb class cannot be created and the AddLimb method of Object3D class needs a Mesh object but I want to attach two Object3D classes. How can I achieve this?

Fear leads to anger
Anger leads to hate
Hate leads to suffering
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Dec 2008 01:31
Yoda, if the Limb class is missing a specific constructor, I will add it. I did realize after reading your post that there is a specific constructor missing. For now, you can actually workaround this by using rhe IDs of the Object3D class and use the CDarkGDK.oDB3D functions to acheive your goal.

I'll fix this of course for the next version.

Paul.

Yoda Master
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location: Genova
Posted: 11th Dec 2008 11:51
Thanks for your hint!!

I also noticed that I can achieve this by accessing to the object main limb and using its GlueObject method...It works perfectly.

Dim sp as new Sphere(20.0F)
dim another as new Cylinder(20.0F)

sp.Limb(0).GlueObject(another)

This code works!!

Fear leads to anger
Anger leads to hate
Hate leads to suffering
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 11th Dec 2008 14:09
Will this work?

sp.Limb(0).GlueObject(new Cylinder(20.0F))

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
Yoda Master
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location: Genova
Posted: 11th Dec 2008 15:20
@Niels Henriksen: Why not?

Fear leads to anger
Anger leads to hate
Hate leads to suffering
Yoda Master
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location: Genova
Posted: 11th Dec 2008 15:23 Edited at: 11th Dec 2008 15:24
[Post moved to [DarkGDK.NET] Bugs report thread]

Fear leads to anger
Anger leads to hate
Hate leads to suffering

Login to post a reply

Server time is: 2024-09-30 13:33:39
Your offset time is: 2024-09-30 13:33:39