You are viewing a single comment's thread from:
RE: Investigating line of sight - Problem solved by just using brainpower
Yes, that is it. Do that, however; just remember FixedUpdate is not every frame, so frame dependent should be Update. Should not make a difference being a psychics raycast. Imho should not exactly be frame dependent for a simple line of sight either....so FixedUpdate should do fine. Sorry if it seems confusing.
No problem, I get it, I get that it 'shouldn't' be as you say but from the way I've seen it working it clearly is not calculating every frame, so it's a good idea just to put it in to be safe and prevent any bugs.