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.

DarkBASIC Professional Discussion / Character Rotation

Author
Message
Arius Myst
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 22nd Aug 2003 20:01
I've got a bsp loaded, an MD2 model loaded. But when i try to add control to the model loaded it moves in a wierd way, as if the axis are screwed. Heres my code:



Can any1 see an error in my code, bar the fact that its messy?

Its these two lines that are giving me grief:

"If UpKey() = 1 Then Move Object 1, 0.2
If DownKey() = 1 Then Move Object 1, -0.2"

The object doesn't move forwards it moves sideways.

¥öü ®å§Ë tHË ß|å�Ë, ¥öü måkË tHË ÇHåñgË, ¥öü ®Ëå®åñgË mË tî|| î'm §åñË
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 22nd Aug 2003 20:06
the model was probably made on slightly odd axis try adding
yrotate object objnum,90
fix object pivot objnum
just after you load the object and see if it helps


Login to post a reply

Server time is: 2026-07-23 15:49:04
Your offset time is: 2026-07-23 15:49:04