77 std::optional<TraceHit>
FirstHit(
const Vector& from,
const Vector& to,
const TraceOptions& options = {})
const;
79 const TraceOptions& options = {})
const;
84 const Bindings& _bindings;
A live entity, valid for this frame only.
Result< TraceHit > Line(const Vector &from, const Vector &to, const TraceOptions &options={}) const
Result< TraceHit > Box(const Vector &from, const Vector &to, const Vector &mins, const Vector &maxs, const TraceOptions &options={}) const
Trace(const Bindings &bindings)
std::optional< TraceHit > FirstHit(const Vector &from, const Vector &to, const TraceOptions &options={}) const
Result< bool > Clear(const Vector &from, const Vector &to, const TraceOptions &options={}) const
Trace & operator=(const Trace &)=delete
Result< TraceHit > FromEyes(const Pawn &pawn, float distance, TraceLayers layers=TraceLayers::Solid) const
Trace(const Trace &)=delete
std::expected< void, Error > Status
std::expected< T, Error > Result
@ Sight
what hides one player from another
@ Surfaces
every drawn surface and the sky; no player clips or players
@ Solid
what a player body collides with, players included
Vector Normal
zero without a hit
EntityRef HitEntity
the world included
float Fraction
share of the path travelled
bool Hit
also true when the start is inside a solid