Why Doesn't The DebugLine work properly

For calculating the LineTraceEnd I first wrote the following

FVector LineTraceEnd = PCLocation + PCRotator.Vector() * float(100.f,0.f,0.f);

However The line was slightly offset to the bottom left and was only visible when the Player moved

Then I tried Ben’s method of storing the 100.f value in a float called reach and the debugline worked fine.

I would like to know if there is any logical reason as to why the former case did not work

hi, if you explain the problem with codes and maybe screen shots it would be better for other people to answer your question, for example what is PCLocation’s (i guess player controller location?) declaration on yr code? and what was ben’s method to handle this? cuz its hard to remember what he did exactly.

float(100.f,0.f,0.f);

What is different here?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms