Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding Powercells that needs charging
#8
melex750 excellent job!

But - what is the meaning of this part of code? -
if (item.velocity.x != nan)
{
speed = abs(item.velocity.x);
speed += abs(item.velocity.y);
speed += abs(item.velocity.z);
} else speed = 0.0;



And for what purpose do you use line with - return; and nothing more? What is it doing?


Messages In This Thread
Finding Powercells that needs charging - by Jono - 04-09-2015, 08:14 AM
RE: Finding Powercells that needs charging - by clop1000 - 05-03-2016, 12:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)