73 const Bindings& _bindings;
A live entity, valid for this frame only.
runtime.Trace: line and box traces against the physics world. Game-thread 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)
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
static std::string ReadFile(const std::filesystem::path &path)
std::expected< void, Error > Status
@ 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
std::expected< T, Error > Result
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