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 / (C++, DGK, Ezroate) dbSetObjectToObjectOrientation - HierarchyQuestion

Author
Message
Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 21st Oct 2008 08:20 Edited at: 21st Oct 2008 10:34
Got a Question here, is there a 3d Object Hierarchy I should watch out for.

Object 2 = 12 (just refrence numbers to the object)
Object 1 = 9

dbSetObjectToObjectOrientation ( Object 2, Object 1 ) ;

I am working on creating bullets (lots of them) (object 2) that fly out of the front of the the ship (object 1). I want the bullets to face the direction of Object 1 (the ship).

I spawn the new bullet in, place it to the 3d world. I then use the above command. The effect I get is the bullet goes in the direction it was spawned in and NOT the direction object 1.

When I flip the values between object 1 and 2, the ship (object 1, becomes the object to change) changes direction and matches the direction of object 2 (the bullet).

So am I right in figuring that with a Lower numbered object can not change it's orientation vs. a higher numbered object?

I am using Ezrotate, I am not for sure if that does something to this or not.

***************************** Nevermind *********************

I rewrote the code, and it works fine now.. I am not for sure what
I did, entirely.

************************************************************
Moderator you can delete this post if you wish.

There are many answers but just one question" ~ Jerilith the Mad

Login to post a reply

Server time is: 2024-11-25 06:53:58
Your offset time is: 2024-11-25 06:53:58