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 / Rotate Object to position

Author
Message
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 9th Apr 2010 00:03
I'm having a NPC that I want to rotate to a waypoint, but I want to do that in a motion, so not with dbPointObject.

Does anyone knows how to do that?
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 9th Apr 2010 02:33
Yeh, keep a variable:

This is the angle you want to turn towards but not the actual angle you are facing, then do something like:


haliop
User Banned
Posted: 9th Apr 2010 08:28
yeah but what with the X and z?

isnt it better using the dbTanFull?
and then just ++0.# the Angle?
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 9th Apr 2010 23:28 Edited at: 10th Apr 2010 00:34
I got something to work, but now when its rotated it should stop the loop. but now when its finisht whit rotating it first rotating right than left and it goes on like that...

Login to post a reply

Server time is: 2024-11-20 01:44:01
Your offset time is: 2024-11-20 01:44:01