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.

Author
Message
Rodro
17
Years of Service
User Offline
Joined: 17th Sep 2002
Location:
Posted: 18th Sep 2002 05:35
I am new to DB and DBpro, however, I’ve been programming many languages for 15 years. I have a Jet which flies around in 3D, which looks good. I am wondering how do I know which way the jet is facing so I can do the proper rotate to make the jet roll into a turn? Will I have keep track within my program? (hope not)

Has any one else run into a problem multiplying a number by -1 within DBpro? For example:

A = 7
A = A * -1
A now = -1
If I then multiply A by -1 again it stays -1.

Thanks, I love what I see so far in DBpro
BHoltzman
17
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 18th Sep 2002 10:11
Maybe there's a problem with compiler optimizations?

MrTAToad
17
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 18th Sep 2002 14:39
a=7
a=a * -1
print a
a=a * -1
wait key

Does display -1 in both caces, but :

a=7
a=a *-1
print a
a=a *-1
print a
wait key

doesn't - seems to be a parsing error

Yes, I really am THAT good...
Rodro
17
Years of Service
User Offline
Joined: 17th Sep 2002
Location:
Posted: 18th Sep 2002 19:03
Whoa!!

Thanks MrTAToad. I told the people about it at DB.

MrTAToad
17
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Sep 2002 13:07
Same here too!

Yes, I really am THAT good...

Login to post a reply

Server time is: 2019-11-17 20:59:54
Your offset time is: 2019-11-17 20:59:54