Lecture 74 LineTraceSingleByObjectType - FCollisionQueryParams not in Unreal 4.11

I’ve started this course with Unreal 4.11 because that’s what I had installed.
Everything has worked fine up until this Lecture and the parameter: FCollisionQueryParams() doesn’t appear to be available anymore. I have an FCollisionObjectQueryParams(), but it doesn’t have the same parameter set as the pervious function.

Am I hosed? Is there a work around??

Mine compiles fine on 4.12 which has the same code as the lecture, though that last parameter has a default value so you should be able to just omit it. I.E

GetWorld()->LineTraceSingleByObjectType(Hit, StartTrace, EndTrace, ECC_PhysicsBody);

Thanks so much, that did the trick!

Privacy & Terms