velocity – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search

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)