This makes no sense!

Started by
12 comments, last by adamxiii 20 years, 8 months ago
frameInterval is a float, sorry
Advertisement
quote:Original post by adamxiii
frameInterval is a float, sorry

Have you stepped into the code and checked the values before and after the computation yet?

I can''t really debug it because I have already rewritten the code so that lifeRate is now a member of the class and not of the particle struct. This way is much better anyways.

I was just curious why the first way wouldn''t work.
If the code change to go back and test it out isn''t too much, I''d do it and figure out what was going on. Break on that code and look at the values or display them to screen or something just so you can see if they are what you were expecting. There is always a chance that your value in particle.lifeRate was being stomped by something else. If it was, then something else is now being stomped and it could get ugly later.

This topic is closed to new replies.

Advertisement