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.

Newcomers DBPro Corner / Offset Object's Rotation

Author
Message
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 5th Aug 2011 03:39
Here's the problem.... I have an object (zombie none the less ) and well, i use the dbMoveObject (move object in dark basic pro) command and when i move it, it moves backwards. now i realize i could simply inverse the movement speed and it would work all fine and dandy, but i'm making an engine of sorts, and i want to create an "offsetObjectRotation" method in my object class so i can offset the normal rotation of the object. Any ideas?

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Aug 2011 04:09 Edited at: 5th Aug 2011 04:10
dbFixObjectPivot( ObjID );

Rotate your object to face to correct direction then use the above command. All rotation and move commands will work as normal then.

EDIT: Whoops...

DBPro - FIX OBJECT PIVOT ObjID

I was thinking I was in the GDK forum...

Warning! May contain Nuts!
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 5th Aug 2011 04:26
hehe it's okay, i'm using GDK, this is really the best place to get ideas about the commands

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Aug 2011 04:34
I still just use the DBPro manual rather than the GDK one.

Warning! May contain Nuts!
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 5th Aug 2011 05:07
me too Thanks again! it works

Login to post a reply

Server time is: 2024-11-24 02:54:33
Your offset time is: 2024-11-24 02:54:33