velocity – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 3: Line 3:
? (velocity carOne Select 0) > 50 : hint "Slow down, you are exceeding the speed limit."
? (velocity carOne Select 0) > 50 : hint "Slow down, you are exceeding the speed limit."


There is no array involved in this?
There is no array involved in this.
 
Edit:......never mind.....I think I got there finally  ;)
 


[[User:Planck|Planck]] 22:16, 16 June 2007 (CEST)
[[User:Planck|Planck]] 22:16, 16 June 2007 (CEST)
::Speaking of the example. It makes no sense IMHO. It suggests that the car is exceeding a speed limit but it only checks the x value, meaning the speed in x (world) direction. But in reality it makes no sense as the car could drive much faster in y-direction and have a value of 0 in x direction. Also 50 m/s (13.89 km/h) is not really fast for a car ;) I guess the example should be changed to have a less misguiding example than the current one. [[User:Donnervogel|Donnervogel]] 23:46, 16 June 2007 (CEST)
:: right, except that 50m/s is 180km/h which is quite fast ;) --[[User:T D|T_D]] 01:35, 17 June 2007 (CEST)
:::aww right sorry about that. Where was my head... ah well it's one week before the exams... I take no guarantee for any of my gibberish that is not related to my lectures ;) [[User:Donnervogel|Donnervogel]] 12:33, 17 June 2007 (CEST)

Latest revision as of 11:33, 17 June 2007

What does select 0 in the second example mean exactly?

? (velocity carOne Select 0) > 50 : hint "Slow down, you are exceeding the speed limit."

There is no array involved in this.

Edit:......never mind.....I think I got there finally  ;)


Planck 22:16, 16 June 2007 (CEST)

Speaking of the example. It makes no sense IMHO. It suggests that the car is exceeding a speed limit but it only checks the x value, meaning the speed in x (world) direction. But in reality it makes no sense as the car could drive much faster in y-direction and have a value of 0 in x direction. Also 50 m/s (13.89 km/h) is not really fast for a car ;) I guess the example should be changed to have a less misguiding example than the current one. Donnervogel 23:46, 16 June 2007 (CEST)
right, except that 50m/s is 180km/h which is quite fast ;) --T_D 01:35, 17 June 2007 (CEST)
aww right sorry about that. Where was my head... ah well it's one week before the exams... I take no guarantee for any of my gibberish that is not related to my lectures ;) Donnervogel 12:33, 17 June 2007 (CEST)