Jump to content
Sign in to follow this  
brandungskeiler

speed and forceSpeed

Recommended Posts

Hello,

since I'm really unsatisfied (:pray:) with the current implementation of the "COLUMN" formation using vehicles I decided to write a convoy script. Well, the first version works so far (at least much better than the column formation) but there's one very strange thing:

The command

speed <object>

returns the speed of the specified object in km/h. If I force the speed of the unit using the command

<object> forceSpeed <speed>

things get messed up. E.g. if I pass the argument 10 to the forceSpeed command

vehicle forceSpeed 10;

a call to the speed command (vehicle travelling at "stable" speed)

_actualSpeed = speed vehicle;

tells me that it is travelling approximately 30.

Uh,...what? But: The ratio of these values is 1/3 (of course you can do it the other way...). This is close to the "magic number" 0.278 that is used to convert from km/h to m/s, and if I use this "magic number" as a scaling factor everything works fine.

So, am I doing something wrong, is this a known issue and I missed the corresponding thread or can anyone confirm that?

Thanks

Share this post


Link to post
Share on other sites

dunno actually but i definately read once that one velocity function was in m/s and another one was in km/h (1 : 3.6)

so it looks like you are facing that right away

Share this post


Link to post
Share on other sites

Further tests confirm the assumption.

I'm sorry to say, but it seems like the people at BI lost track of their product. I shouldn't be at all surprised if all the other bugs that I'm encountering are due to similar "bugs"... :sad:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×