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 / Pointers - What's the Command for Changing the Facing of a 3d Object. to a Specific Location

Author
Message
Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 5th Mar 2008 22:21
Things are going well. With my little programing test. Though got a question.

I am trying to get my object to face a specific point (x,y,z) (much pbPointCamera camera command). Don't see a command for that, could be missing it inside the docs. Any pointers?

There are many answers but just one question" ~ Jerilith the Mad
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 5th Mar 2008 22:51
I think you need to find the angle to the object and then rotate your object.

Niels Henriksen
Working on a (MMO)RPG right now in LightEngine (thanks kBessa)
Killer Fish
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location:
Posted: 6th Mar 2008 02:49
dbPointObject ( int iObject, float fX, float fY, float fZ )
Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 6th Mar 2008 03:11
Found it, had to look in the Include File, another one not in the docs. The function called, dbPointObject. Thats four hours of searching and working... grr.

Case Solved.

There are many answers but just one question" ~ Jerilith the Mad
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 6th Mar 2008 03:34
Quote: "Thats four hours of searching and working"


Google is your Friend! DarkBasic Docs Are your ... Almost Friend.

Header Files are EVIL... there are so many... GREP (Text Searching tools) is kinda annoying... The Built in WINDOWS "Search Assistant" is as useless as the robot animation of a dog or whatever are....

So what should you use to search through all those header files in DarkGDK when you just want to find the word "POINT"?

diskMetaLight (Free) - http://diskmeta.com/en/

Load it, run it, index a directory of choice.. then works like google... Like the Winblows Search Assistant was supposed to.

Login to post a reply

Server time is: 2024-09-29 13:28:40
Your offset time is: 2024-09-29 13:28:40