Updates from Christian Mayer.
This commit is contained in:
parent
62ec5d7c22
commit
0e48fe8ac4
1 changed files with 3 additions and 2 deletions
|
@ -172,8 +172,9 @@ void balloon::update()
|
||||||
sgVec3 v;
|
sgVec3 v;
|
||||||
|
|
||||||
//get the current wind velocity and store it in v
|
//get the current wind velocity and store it in v
|
||||||
Point3D temp = WeatherDatabase->get(position).Wind;
|
//Point3D temp = WeatherDatabase->get(position).Wind;
|
||||||
sgSetVec3(v, temp.x(), temp.y(), temp.z());
|
//sgSetVec3(v, temp.x(), temp.y(), temp.z());
|
||||||
|
sgCopyVec3(v, WeatherDatabase->get(position).Wind );
|
||||||
|
|
||||||
sgSubVec3(v, velocity);
|
sgSubVec3(v, velocity);
|
||||||
float speed = sgLengthVec3(v);
|
float speed = sgLengthVec3(v);
|
||||||
|
|
Loading…
Reference in a new issue