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 / Roll Object Command

Author
Message
bigjet
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location:
Posted: 13th Oct 2003 06:10
what axis is effected by that command
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 13th Oct 2003 06:26 Edited at: 13th Oct 2003 06:27
It is better to program than ask

make object cube 1, 10

position object 1, 0,0,30

do
roll object left 1,1

set cursor 10,20 : Print "Object x ", Object angle x(1)
set cursor 10,40 : Print "Object y ", Object angle y(1)
set cursor 10,60 : Print "Object z ", Object angle z(1)

loop

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
flibX0r
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 13th Oct 2003 07:58
It doesn't actually affect a specific axis, but "rolls" it around, no matter what the yrotation is. Think of an air craft rolling. It could be aiming at any bearing and it wouldn't affect it rolling.

I think I probably just confused you.

I can't do that.
The king of he potato people won't let me.
Current Project: "Jelly Wars : Episode 2" entry for alienware compo
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Oct 2003 11:00
The z Axis of the object you are rolling.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php

Login to post a reply

Server time is: 2026-07-26 04:28:25
Your offset time is: 2026-07-26 04:28:25